mercurial/util.py
changeset 5291 23651848d638
parent 5213 b0bc8cf41ffc
child 5292 5a65d870871d
--- a/mercurial/util.py	Fri Sep 07 17:38:52 2007 +0200
+++ b/mercurial/util.py	Mon Sep 10 23:36:01 2007 +0200
@@ -1628,3 +1628,7 @@
         if path.startswith('//'):
             path = path[2:]
     return path
+
+def uirepr(s):
+    # Avoid double backslash in Windows path repr()
+    return repr(s).replace('\\\\', '\\')