mercurial/util.py
changeset 5291 23651848d638
parent 5215 b0bc8cf41ffc
child 5292 5a65d870871d
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -1628,3 +1628,7 @@ def drop_scheme(scheme, path):
         if path.startswith('//'):
             path = path[2:]
     return path
+
+def uirepr(s):
+    # Avoid double backslash in Windows path repr()
+    return repr(s).replace('\\\\', '\\')