Submitter | phabricator |
---|---|
Date | March 2, 2018, 5:10 p.m. |
Message ID | <aed8c58683be2abfd79e15862c6316c2@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/28700/ |
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,8 +70,9 @@ self.errors += 1 def exc(self, linkrev, msg, inst, filename=None): - if not str(inst): - inst = repr(inst) + fmsg = pycompat.bytestr(inst) + if not fmsg: + fmsg = pycompat.byterepr(inst) self.err(linkrev, "%s: %s" % (msg, inst), filename) def checklog(self, obj, name, linkrev):