diff -r b44fac3a49fb -r 1fa33bd848ee mercurial/util.py --- a/mercurial/util.py Sat Feb 17 18:09:56 2018 +0900 +++ b/mercurial/util.py Sat Feb 17 18:14:51 2018 +0900 @@ -2427,7 +2427,7 @@ def uirepr(s): # Avoid double backslash in Windows path repr() - return repr(s).replace('\\\\', '\\') + return pycompat.byterepr(pycompat.bytestr(s)).replace(b'\\\\', b'\\') # delay import of textwrap def MBTextWrapper(**kwargs):