Mercurial > public > mercurial-scm > hg-stable
diff mercurial/sshpeer.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 | 73ed1d13c0bf |
children | 3a2df812e1c7 |
line wrap: on
line diff
--- a/mercurial/sshpeer.py Tue Apr 04 11:58:35 2023 +0200 +++ b/mercurial/sshpeer.py Fri Apr 07 15:42:49 2023 +0200 @@ -568,7 +568,7 @@ self._readerr() -def makepeer(ui, path, proc, stdin, stdout, stderr, autoreadstderr=True): +def _make_peer(ui, path, proc, stdin, stdout, stderr, autoreadstderr=True): """Make a peer instance from existing pipes. ``path`` and ``proc`` are stored on the eventual peer instance and may @@ -658,7 +658,7 @@ ui, sshcmd, args, remotecmd, remotepath, sshenv ) - peer = makepeer(ui, path, proc, stdin, stdout, stderr) + peer = _make_peer(ui, path, proc, stdin, stdout, stderr) # Finally, if supported by the server, notify it about our own # capabilities.