# HG changeset patch # User Gregory Szorc # Date 1522279734 25200 # Node ID 3a91911c434322b16ff413057146c06311335d76 # Parent 6e6d68c2d39c09e09b38b765f702330ff7566013 wireproto: only expose "debugwireargs" to version 1 transports I'm not even sure this command should be enabled for version 1 transports. It is just a reflection endpoint for argument data. We definitely don't need to support it in version 2. Differential Revision: https://phab.mercurial-scm.org/D3184 diff -r 6e6d68c2d39c -r 3a91911c4343 mercurial/wireproto.py --- a/mercurial/wireproto.py Wed Mar 28 16:14:42 2018 -0700 +++ b/mercurial/wireproto.py Wed Mar 28 16:28:54 2018 -0700 @@ -931,7 +931,7 @@ return wireprototypes.streamres(gen=gen) @wireprotocommand('debugwireargs', 'one two *', - permission='pull') + permission='pull', transportpolicy=POLICY_V1_ONLY) def debugwireargs(repo, proto, one, two, others): # only accept optional args from the known set opts = options('debugwireargs', ['three', 'four'], others)