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
--- 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: