diff mercurial/util.py @ 5291:23651848d638

extdiff: avoid repr() doubling paths backslashes under Windows
author Patrick Mezard <pmezard@gmail.com>
date Mon, 10 Sep 2007 23:36:01 +0200
parents b0bc8cf41ffc
children 5a65d870871d
line wrap: on
line diff
--- 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('\\\\', '\\')