Patchwork D2484: wireprotoserver: identify requests via version 2 of SSH protocol as such

login
register
mail settings
Submitter phabricator
Date Feb. 27, 2018, 11:50 p.m.
Message ID <differential-rev-PHID-DREV-ch6b4zxnjviaqrxjl3gw-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28480/
State Superseded
Headers show

Comments

phabricator - Feb. 27, 2018, 11:50 p.m.
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  The protocol handler needs to advertise itself as version 2 in order
  for a future feature to work.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2484

AFFECTED FILES
  mercurial/wireprotoserver.py

CHANGE DETAILS




To: indygreg, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/wireprotoserver.py b/mercurial/wireprotoserver.py
--- a/mercurial/wireprotoserver.py
+++ b/mercurial/wireprotoserver.py
@@ -372,6 +372,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: