comparison mercurial/changegroup.py @ 36464:3f0af89e008d

narrow: move requirement constant to core My short-term goal is to move narrowrepo.narrowmatch() onto localrepo and this is a necessary step for that. I put the constant in changegroup.py, unlike REVLOGV2_REQUIREMENT, which is in localrepo.py, since we'll need to access it from the changegroup module eventually. Differential Revision: https://phab.mercurial-scm.org/D2487
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 28 Feb 2018 10:21:43 -0800
parents fb0be099063f
children 94709406f10d
comparison
equal deleted inserted replaced
36463:1bd132a021dd 36464:3f0af89e008d
29 ) 29 )
30 30
31 _CHANGEGROUPV1_DELTA_HEADER = "20s20s20s20s" 31 _CHANGEGROUPV1_DELTA_HEADER = "20s20s20s20s"
32 _CHANGEGROUPV2_DELTA_HEADER = "20s20s20s20s20s" 32 _CHANGEGROUPV2_DELTA_HEADER = "20s20s20s20s20s"
33 _CHANGEGROUPV3_DELTA_HEADER = ">20s20s20s20s20sH" 33 _CHANGEGROUPV3_DELTA_HEADER = ">20s20s20s20s20sH"
34
35 # When narrowing is finalized and no longer subject to format changes,
36 # we should move this to just "narrow" or similar.
37 NARROW_REQUIREMENT = 'narrowhg-experimental'
34 38
35 readexactly = util.readexactly 39 readexactly = util.readexactly
36 40
37 def getchunk(stream): 41 def getchunk(stream):
38 """return the next chunk from stream as a string""" 42 """return the next chunk from stream as a string"""