diff -r d979c76d6e54 -r 5f71fff8dc74 mercurial/sshpeer.py --- 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)