Mercurial > public > mercurial-scm > hg-stable
diff mercurial/sshpeer.py @ 49869:5f71fff8dc74
peer: pass the `path` object to `make_peer`
We don't do anything with it yet, but we can start implementing it for each peer
type starting now.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 02 Dec 2022 18:19:59 +0100 |
parents | a6e2a668c746 |
children | 73ed1d13c0bf |
line wrap: on
line diff
--- a/mercurial/sshpeer.py Fri Dec 02 18:18:57 2022 +0100 +++ b/mercurial/sshpeer.py Fri Dec 02 18:19:59 2022 +0100 @@ -612,6 +612,7 @@ The returned object conforms to the ``wireprotov1peer.wirepeer`` interface. """ + path = path.loc u = urlutil.url(path, parsequery=False, parsefragment=False) if u.scheme != b'ssh' or not u.host or u.path is None: raise error.RepoError(_(b"couldn't parse location %s") % path)