Skip to content
Snippets Groups Projects
Commit 6e6d68c2 authored by Gregory Szorc's avatar Gregory Szorc
Browse files

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
parent 3b99eb02
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment