# HG changeset patch # User timeless@mozdev.org # Date 1441379702 14400 # Node ID 99b6afff09ae3c947d2770613be898d8333cc1ad # Parent 7df5d476087392e217699a41c11fbe8cd48713b2 posix: shellquote do not require quoting for "+" (issue4818) diff -r 7df5d4760873 -r 99b6afff09ae mercurial/posix.py --- a/mercurial/posix.py Sat Sep 12 12:16:39 2015 -0700 +++ b/mercurial/posix.py Fri Sep 04 11:15:02 2015 -0400 @@ -350,7 +350,7 @@ return '"%s"' % s global _needsshellquote if _needsshellquote is None: - _needsshellquote = re.compile(r'[^a-zA-Z0-9._/-]').search + _needsshellquote = re.compile(r'[^a-zA-Z0-9._/+-]').search if s and not _needsshellquote(s): # "s" shouldn't have to be quoted return s