revlog: use pycompat.bytestr() to reliably have a %s-able value
authorAugie Fackler <raf@durin42.com>
Tue, 22 Aug 2017 21:21:43 -0400
changeset 34026 b2eb0aa445cb
parent 34025 626a28f30dbd
child 34028 bfb38c5cebf4
revlog: use pycompat.bytestr() to reliably have a %s-able value
mercurial/revlog.py
--- a/mercurial/revlog.py	Tue Aug 22 23:11:35 2017 -0400
+++ b/mercurial/revlog.py	Tue Aug 22 21:21:43 2017 -0400
@@ -1473,7 +1473,7 @@
             if revornode is None:
                 revornode = templatefilters.short(hex(node))
             raise RevlogError(_("integrity check failed on %s:%s")
-                % (self.indexfile, revornode))
+                % (self.indexfile, pycompat.bytestr(revornode)))
 
     def checkinlinesize(self, tr, fp=None):
         """Check if the revlog is too big for inline and convert if so.