diff -r fc8c7a5ccc4a -r be43234a6d60 mercurial/sshrepo.py --- a/mercurial/sshrepo.py Thu Dec 08 16:01:44 2011 -0600 +++ b/mercurial/sshrepo.py Fri Dec 09 15:50:33 2011 +0100 @@ -21,7 +21,7 @@ def _serverquote(s): '''quote a string for the remote shell ... which we assume is sh''' - if re.match(r'[a-zA-Z0-9._\-/]*$', s): + if re.match('[a-zA-Z0-9@%_+=:,./-]*$', s): return s return "'%s'" % s.replace("'", "'\\''")