mercurial/sshpeer.py
branchstable
changeset 51510 a2f1d97e5284
parent 50929 18c8c18993f0
equal deleted inserted replaced
51509:e7bbeaa4f0a7 51510:a2f1d97e5284
   638 
   638 
   639     The returned object conforms to the ``wireprotov1peer.wirepeer`` interface.
   639     The returned object conforms to the ``wireprotov1peer.wirepeer`` interface.
   640     """
   640     """
   641     u = urlutil.url(path.loc, parsequery=False, parsefragment=False)
   641     u = urlutil.url(path.loc, parsequery=False, parsefragment=False)
   642     if u.scheme != b'ssh' or not u.host or u.path is None:
   642     if u.scheme != b'ssh' or not u.host or u.path is None:
   643         raise error.RepoError(_(b"couldn't parse location %s") % path)
   643         raise error.RepoError(_(b"couldn't parse location %s") % path.loc)
   644 
   644 
   645     urlutil.checksafessh(path.loc)
   645     urlutil.checksafessh(path.loc)
   646 
   646 
   647     if u.passwd is not None:
   647     if u.passwd is not None:
   648         raise error.RepoError(_(b'password in URL not supported'))
   648         raise error.RepoError(_(b'password in URL not supported'))