Submitter | phabricator |
---|---|
Date | March 2, 2018, 7:51 p.m. |
Message ID | <183cf0940a4c788f04960948ab96e5fd@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/28707/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/verify.py b/mercurial/verify.py --- a/mercurial/verify.py +++ b/mercurial/verify.py @@ -70,9 +70,10 @@ self.errors += 1 def exc(self, linkrev, msg, inst, filename=None): - if not str(inst): - inst = repr(inst) - self.err(linkrev, "%s: %s" % (msg, inst), filename) + fmsg = pycompat.bytestr(inst) + if not fmsg: + fmsg = pycompat.byterepr(inst) + self.err(linkrev, "%s: %s" % (msg, fmsg), filename) def checklog(self, obj, name, linkrev): if not len(obj) and (self.havecl or self.havemf):