mercurial/sshpeer.py
changeset 49750 f075a9463ee7
parent 49748 78af51ba73c5
child 49751 a6e2a668c746
equal deleted inserted replaced
49749:be3fcd9e5e52 49750:f075a9463ee7
   605         raise error.RepoError(
   605         raise error.RepoError(
   606             _(b'unknown version of SSH protocol: %s') % protoname
   606             _(b'unknown version of SSH protocol: %s') % protoname
   607         )
   607         )
   608 
   608 
   609 
   609 
   610 def instance(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     u = urlutil.url(path, parsequery=False, parsefragment=False)
   615     u = urlutil.url(path, parsequery=False, parsefragment=False)