# HG changeset patch # User Benoit Boissinot # Date 2006-10-31 22:56:52 # Node ID e00920b4f1cb1b6e125180f10c7a16a376892076 # Parent 27121416f9a80852c50f04c59759408a7b626208 sshrepo: fix the parsing of the ssh url diff --git a/mercurial/sshrepo.py b/mercurial/sshrepo.py --- a/mercurial/sshrepo.py +++ b/mercurial/sshrepo.py @@ -16,7 +16,7 @@ class sshrepository(remoterepository): self._url = path self.ui = ui - m = re.match(r'ssh://(([^@]+)@)?([^:/]+)(:(\d+))?(/(.*))?', path) + m = re.match(r'^ssh://(([^@]+)@)?([^:/]+)(:(\d+))?(/(.*))?$', path) if not m: self.repoerror(_("couldn't parse location %s") % path)