Patchwork D3184: wireproto: only expose "debugwireargs" to version 1 transports

login
register
mail settings
Submitter phabricator
Date April 9, 2018, 3:14 p.m.
Message ID <b98626923d9c93485ea99bb46191ca89@localhost.localdomain>
Download mbox | patch
Permalink /patch/30600/
State Not Applicable
Headers show

Comments

phabricator - April 9, 2018, 3:14 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG3a91911c4343: wireproto: only expose &quot;debugwireargs&quot; to version 1 transports (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3184?vs=7869&id=7901

REVISION DETAIL
  https://phab.mercurial-scm.org/D3184

AFFECTED FILES
  mercurial/wireproto.py

CHANGE DETAILS




To: indygreg, #hg-reviewers, yuja
Cc: mercurial-devel

Patch

diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py
--- a/mercurial/wireproto.py
+++ b/mercurial/wireproto.py
@@ -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)