equal
deleted
inserted
replaced
610 def make_peer(ui, path, create, intents=None, createopts=None): |
610 def make_peer(ui, path, create, intents=None, createopts=None): |
611 """Create an SSH peer. |
611 """Create an SSH peer. |
612 |
612 |
613 The returned object conforms to the ``wireprotov1peer.wirepeer`` interface. |
613 The returned object conforms to the ``wireprotov1peer.wirepeer`` interface. |
614 """ |
614 """ |
|
615 path = path.loc |
615 u = urlutil.url(path, parsequery=False, parsefragment=False) |
616 u = urlutil.url(path, parsequery=False, parsefragment=False) |
616 if u.scheme != b'ssh' or not u.host or u.path is None: |
617 if u.scheme != b'ssh' or not u.host or u.path is None: |
617 raise error.RepoError(_(b"couldn't parse location %s") % path) |
618 raise error.RepoError(_(b"couldn't parse location %s") % path) |
618 |
619 |
619 urlutil.checksafessh(path) |
620 urlutil.checksafessh(path) |