# HG changeset patch # User Benoit Boissinot # Date 1162335412 -3600 # Node ID e00920b4f1cb1b6e125180f10c7a16a376892076 # Parent 27121416f9a80852c50f04c59759408a7b626208 sshrepo: fix the parsing of the ssh url diff -r 27121416f9a8 -r e00920b4f1cb mercurial/sshrepo.py --- a/mercurial/sshrepo.py Tue Oct 31 14:53:08 2006 -0800 +++ b/mercurial/sshrepo.py Tue Oct 31 23:56:52 2006 +0100 @@ -16,7 +16,7 @@ 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)