changeset 34044:b2eb0aa445cb

revlog: use pycompat.bytestr() to reliably have a %s-able value
author Augie Fackler <raf@durin42.com>
date Tue, 22 Aug 2017 21:21:43 -0400
parents 626a28f30dbd
children bfb38c5cebf4
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.