Mercurial > public > mercurial-scm > hg-stable
diff mercurial/sshrepo.py @ 3599:e00920b4f1cb
sshrepo: fix the parsing of the ssh url
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Tue, 31 Oct 2006 23:56:52 +0100 |
parents | ef1032c223e7 |
children | 6652209d104d |
line wrap: on
line diff
--- 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)