##// END OF EJS Templates
extdiff: avoid double backslashes in the displayed tool path on Windows...
Matt Harbison -
r40842:151aec64 default
parent child Browse files
Show More
@@ -383,8 +383,9 b' class savedcmd(object):'
383
383
384 def __init__(self, path, cmdline):
384 def __init__(self, path, cmdline):
385 # We can't pass non-ASCII through docstrings (and path is
385 # We can't pass non-ASCII through docstrings (and path is
386 # in an unknown encoding anyway)
386 # in an unknown encoding anyway), but avoid double separators on
387 docpath = stringutil.escapestr(path)
387 # Windows
388 docpath = stringutil.escapestr(path).replace(b'\\\\', b'\\')
388 self.__doc__ %= {r'path': pycompat.sysstr(stringutil.uirepr(docpath))}
389 self.__doc__ %= {r'path': pycompat.sysstr(stringutil.uirepr(docpath))}
389 self._cmdline = cmdline
390 self._cmdline = cmdline
390
391
General Comments 0
You need to be logged in to leave comments. Login now