Mercurial > public > mercurial-scm > hg
comparison mercurial/wireprotoserver.py @ 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 | 3cd245945ef3 |
children | 6e585bca962e |
comparison
equal
deleted
inserted
replaced
36609:abc3b9801563 | 36610:af0d38f015bb |
---|---|
369 return 'remote:ssh:' + client | 369 return 'remote:ssh:' + client |
370 | 370 |
371 class sshv2protocolhandler(sshv1protocolhandler): | 371 class sshv2protocolhandler(sshv1protocolhandler): |
372 """Protocol handler for version 2 of the SSH protocol.""" | 372 """Protocol handler for version 2 of the SSH protocol.""" |
373 | 373 |
374 @property | |
375 def name(self): | |
376 return wireprototypes.SSHV2 | |
377 | |
374 def _runsshserver(ui, repo, fin, fout, ev): | 378 def _runsshserver(ui, repo, fin, fout, ev): |
375 # This function operates like a state machine of sorts. The following | 379 # This function operates like a state machine of sorts. The following |
376 # states are defined: | 380 # states are defined: |
377 # | 381 # |
378 # protov1-serving | 382 # protov1-serving |