Mercurial > hg
changeset 36610:af0d38f015bb
wireprotoserver: identify requests via version 2 of SSH protocol as such
The protocol handler needs to advertise itself as version 2 in order
for a future feature to work.
Differential Revision: https://phab.mercurial-scm.org/D2484
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 27 Feb 2018 14:56:03 -0800 |
parents | abc3b9801563 |
children | 6906547c8476 |
files | mercurial/wireprotoserver.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/wireprotoserver.py Fri Mar 02 09:47:37 2018 -0500 +++ b/mercurial/wireprotoserver.py Tue Feb 27 14:56:03 2018 -0800 @@ -371,6 +371,10 @@ class sshv2protocolhandler(sshv1protocolhandler): """Protocol handler for version 2 of the SSH protocol.""" + @property + def name(self): + return wireprototypes.SSHV2 + def _runsshserver(ui, repo, fin, fout, ev): # This function operates like a state machine of sorts. The following # states are defined: