diff -r 55681baf4cf9 -r 173ecccb9ee7 mercurial/util.py --- a/mercurial/util.py Mon Jul 31 16:04:44 2017 -0700 +++ b/mercurial/util.py Mon Jul 31 16:44:17 2017 -0700 @@ -2890,7 +2890,8 @@ Raises an error.Abort when the url is unsafe. """ path = urlreq.unquote(path) - if path.startswith('ssh://-') or '|' in path: + if (path.startswith('ssh://-') or path.startswith('svn+ssh://-') + or '|' in path): raise error.Abort(_('potentially unsafe url: %r') % (path,))