Mercurial > public > mercurial-scm > hg-stable
diff mercurial/debugcommands.py @ 50458:ed052780ad5e
peer: rename makepeer() ? _make_peer()
In httppeer and sshpeer, there previously were makepeer() and make_peer(),
which was confusing. Therefore, this changeset renames one of the functions.
makepeer() was the internal function called by make_peer() and some debug
command. This function is renamed to _make_peer().
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Fri, 07 Apr 2023 15:42:49 +0200 |
parents | af776c3d5c3e |
children | f0d2b18f0274 |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Tue Apr 04 11:58:35 2023 +0200 +++ b/mercurial/debugcommands.py Fri Apr 07 15:42:49 2023 +0200 @@ -4512,7 +4512,7 @@ peer = None else: ui.write(_(b'creating ssh peer from handshake results\n')) - peer = sshpeer.makepeer( + peer = sshpeer._make_peer( ui, url, proc, @@ -4568,7 +4568,7 @@ ) else: peer_path = urlutil.try_path(ui, path) - peer = httppeer.makepeer(ui, peer_path, opener=opener) + peer = httppeer._make_peer(ui, peer_path, opener=opener) # We /could/ populate stdin/stdout with sock.makefile()... else: