mercurial/sshrepo.py
changeset 2473 30c267cb4c2f
parent 2449 6ff30968f911
child 2484 eabcda3ed0dd
equal deleted inserted replaced
2472:e6ec81a8feea 2473:30c267cb4c2f
    16         self.url = path
    16         self.url = path
    17         self.ui = ui
    17         self.ui = ui
    18 
    18 
    19         m = re.match(r'ssh://(([^@]+)@)?([^:/]+)(:(\d+))?(/(.*))?', path)
    19         m = re.match(r'ssh://(([^@]+)@)?([^:/]+)(:(\d+))?(/(.*))?', path)
    20         if not m:
    20         if not m:
    21             raise hg.RepoError(_("couldn't parse destination %s") % path)
    21             raise hg.RepoError(_("couldn't parse location %s") % path)
    22 
    22 
    23         self.user = m.group(2)
    23         self.user = m.group(2)
    24         self.host = m.group(3)
    24         self.host = m.group(3)
    25         self.port = m.group(5)
    25         self.port = m.group(5)
    26         self.path = m.group(7) or "."
    26         self.path = m.group(7) or "."