mercurial/scmutil.py
changeset 38605 85c74c5a1590
parent 38575 152f4822d210
child 38659 cc76692f401d
--- a/mercurial/scmutil.py	Sun Jul 08 18:52:28 2018 +0900
+++ b/mercurial/scmutil.py	Sun Jul 08 18:58:11 2018 +0900
@@ -201,7 +201,7 @@
         elif not msg:
             ui.warn(_(" empty string\n"))
         else:
-            ui.warn("\n%r\n" % stringutil.ellipsis(msg))
+            ui.warn("\n%r\n" % pycompat.bytestr(stringutil.ellipsis(msg)))
     except error.CensoredNodeError as inst:
         ui.warn(_("abort: file censored %s!\n") % inst)
     except error.RevlogError as inst: