# HG changeset patch # User Gregory Szorc # Date 1522278882 25200 # Node ID 6e6d68c2d39c09e09b38b765f702330ff7566013 # Parent 3b99eb0288597dfe38da9d52d6cb965d80f3cca8 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 diff -r 3b99eb028859 -r 6e6d68c2d39c mercurial/wireproto.py --- 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.