mercurial/util.py
changeset 36266 1fa33bd848ee
parent 36235 d879aab17786
child 36362 01e29e885600
--- 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):