D3183: wireproto: only expose "hello" command to version 1 transports
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Mon Apr 9 11:14:06 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG6e6d68c2d39c: wireproto: only expose "hello" command to version 1 transports (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3183?vs=7868&id=7900
REVISION DETAIL
https://phab.mercurial-scm.org/D3183
AFFECTED FILES
mercurial/wireproto.py
CHANGE DETAILS
diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py
--- a/mercurial/wireproto.py
+++ b/mercurial/wireproto.py
@@ -1010,7 +1010,7 @@
h = repo.heads()
return wireprototypes.bytesresponse(encodelist(h) + '\n')
- at wireprotocommand('hello', permission='pull')
+ at wireprotocommand('hello', permission='pull', transportpolicy=POLICY_V1_ONLY)
def hello(repo, proto):
"""Called as part of SSH handshake to obtain server info.
To: indygreg, #hg-reviewers, yuja
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list