diff --git a/mercurial/sshpeer.py b/mercurial/sshpeer.py index 5bec509dc1ffbb4ed4c682abf3022616ff4a76a4_bWVyY3VyaWFsL3NzaHBlZXIucHk=..b520c8f98e1e47dd221df9cfeeaaa2d19c6dc4e9_bWVyY3VyaWFsL3NzaHBlZXIucHk= 100644 --- a/mercurial/sshpeer.py +++ b/mercurial/sshpeer.py @@ -18,5 +18,6 @@ ) def _serverquote(s): + """quote a string for the remote shell ... which we assume is sh""" if not s: return s @@ -21,6 +22,5 @@ if not s: return s - '''quote a string for the remote shell ... which we assume is sh''' if re.match('[a-zA-Z0-9@%_+=:,./-]*$', s): return s return "'%s'" % s.replace("'", "'\\''")