comparison mercurial/sshpeer.py @ 49750:f075a9463ee7

peer: use a dedicated name for the `peer` constructor We want to change the argument it takes, so we rather make them different function.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 02 Dec 2022 18:04:51 +0100
parents 78af51ba73c5
children a6e2a668c746
comparison
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)