changeset 37489:6e6d68c2d39c

wireproto: only expose "hello" command to version 1 transports This command is only ever used for the handshake in the SSH protocol. We probably don't even need for it to be a proper command. Let's not carry it forward to version 2 because I don't see a use for it there. Differential Revision: https://phab.mercurial-scm.org/D3183
author Gregory Szorc <gregory.szorc@gmail.com>
date Wed, 28 Mar 2018 16:14:42 -0700
parents 3b99eb028859
children 3a91911c4343
files mercurial/wireproto.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/wireproto.py	Wed Mar 28 16:10:41 2018 -0700
+++ b/mercurial/wireproto.py	Wed Mar 28 16:14:42 2018 -0700
@@ -1010,7 +1010,7 @@
     h = repo.heads()
     return wireprototypes.bytesresponse(encodelist(h) + '\n')
 
-@wireprotocommand('hello', permission='pull')
+@wireprotocommand('hello', permission='pull', transportpolicy=POLICY_V1_ONLY)
 def hello(repo, proto):
     """Called as part of SSH handshake to obtain server info.