wireprotoserver: identify requests via version 2 of SSH protocol as such
authorGregory Szorc <gregory.szorc@gmail.com>
Tue, 27 Feb 2018 14:56:03 -0800
changeset 36610 af0d38f015bb
parent 36609 abc3b9801563
child 36611 6906547c8476
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
mercurial/wireprotoserver.py
--- 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: