Mercurial > public > mercurial-scm > hg
diff mercurial/windows.py @ 24148:7a2194473155
merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 27 Feb 2015 17:46:03 -0600 |
parents | c6666395fdd2 d65ecb814fc0 |
children | 22f49c7dd11b |
line wrap: on
line diff
--- a/mercurial/windows.py Tue Feb 24 09:08:54 2015 -0800 +++ b/mercurial/windows.py Fri Feb 27 17:46:03 2015 -0600 @@ -167,7 +167,7 @@ # they are used as a part of path name (and the latter doesn't # work as "escape character", like one on posix) on Windows _needsshellquote = re.compile(r'[^a-zA-Z0-9._:/\\-]').search - if not _needsshellquote(s) and not _quotere.search(s): + if s and not _needsshellquote(s) and not _quotere.search(s): # "s" shouldn't have to be quoted return s return '"%s"' % _quotere.sub(r'\1\1\\\2', s)