[PATCH] posix: shellquote do not require quoting for "+" (issue4818)
timeless at mozdev.org
timeless at mozdev.org
Fri Sep 11 19:27:53 UTC 2015
# HG changeset patch
# User timeless at mozdev.org
# Date 1441379702 14400
# Fri Sep 04 11:15:02 2015 -0400
# Node ID 3cf8adae162715009b09fc38145d5349160232be
# Parent ea489d94e1dc1fc3dc1dcbef1c86c18c49605ed1
posix: shellquote do not require quoting for "+" (issue4818)
diff --git a/mercurial/posix.py b/mercurial/posix.py
--- a/mercurial/posix.py
+++ b/mercurial/posix.py
@@ -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
More information about the Mercurial-devel
mailing list