cvsps: wrap bytes in bytestr before %r-ing it
authorAugie Fackler <augie@google.com>
Fri, 27 Apr 2018 01:28:56 -0400
changeset 37889 d4aad0dd69ed
parent 37888 73ca1c5e65f8
child 37890 cf76642cb2bb
cvsps: wrap bytes in bytestr before %r-ing it Differential Revision: https://phab.mercurial-scm.org/D3487
hgext/convert/cvsps.py
--- a/hgext/convert/cvsps.py	Fri Apr 27 01:27:22 2018 -0400
+++ b/hgext/convert/cvsps.py	Fri Apr 27 01:28:56 2018 -0400
@@ -798,7 +798,7 @@
                 except KeyError:
                     ui.warn(_("warning: CVS commit message references "
                               "non-existent branch %r:\n%s\n")
-                            % (m, c.comment))
+                            % (pycompat.bytestr(m), c.comment))
                 if m in branches and c.branch != m and not candidate.synthetic:
                     c.parents.append(candidate)