Patchwork D2513: wireproto: only expose "between" to version 1 of wire protocols

login
register
mail settings
Submitter phabricator
Date March 3, 2018, 12:16 a.m.
Message ID <7465d89772b3aa2ed6a802774e6f158e@localhost.localdomain>
Download mbox | patch
Permalink /patch/28754/
State Not Applicable
Headers show

Comments

phabricator - March 3, 2018, 12:16 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGed7705017749: wireproto: only expose &quot;between&quot; to version 1 of wire protocols (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2513?vs=6343&id=6414

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

AFFECTED FILES
  mercurial/wireproto.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py
--- a/mercurial/wireproto.py
+++ b/mercurial/wireproto.py
@@ -740,9 +740,7 @@ 
 
     return bytesresponse(';'.join(res))
 
-# TODO mark as version 1 transport only once interaction with
-# SSH handshake mechanism is figured out.
-@wireprotocommand('between', 'pairs')
+@wireprotocommand('between', 'pairs', transportpolicy=POLICY_V1_ONLY)
 def between(repo, proto, pairs):
     pairs = [decodelist(p, '-') for p in pairs.split(" ")]
     r = []