Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
5289:ed6df6b1c29a | 5291:23651848d638 |
---|---|
1626 if path.startswith(sc): | 1626 if path.startswith(sc): |
1627 path = path[len(sc):] | 1627 path = path[len(sc):] |
1628 if path.startswith('//'): | 1628 if path.startswith('//'): |
1629 path = path[2:] | 1629 path = path[2:] |
1630 return path | 1630 return path |
1631 | |
1632 def uirepr(s): | |
1633 # Avoid double backslash in Windows path repr() | |
1634 return repr(s).replace('\\\\', '\\') |