mercurial/requirements.py
changeset 47277 ed0d54b20c5b
parent 47263 6c84fc9c9a90
child 48295 bf11ff22a9af
equal deleted inserted replaced
47276:9cc9b4a25248 47277:ed0d54b20c5b
     9 
     9 
    10 GENERALDELTA_REQUIREMENT = b'generaldelta'
    10 GENERALDELTA_REQUIREMENT = b'generaldelta'
    11 DOTENCODE_REQUIREMENT = b'dotencode'
    11 DOTENCODE_REQUIREMENT = b'dotencode'
    12 STORE_REQUIREMENT = b'store'
    12 STORE_REQUIREMENT = b'store'
    13 FNCACHE_REQUIREMENT = b'fncache'
    13 FNCACHE_REQUIREMENT = b'fncache'
       
    14 
       
    15 DIRSTATE_V2_REQUIREMENT = b'exp-dirstate-v2'
    14 
    16 
    15 # When narrowing is finalized and no longer subject to format changes,
    17 # When narrowing is finalized and no longer subject to format changes,
    16 # we should move this to just "narrow" or similar.
    18 # we should move this to just "narrow" or similar.
    17 NARROW_REQUIREMENT = b'narrowhg-experimental'
    19 NARROW_REQUIREMENT = b'narrowhg-experimental'
    18 
    20 
    72 # * SHARED_REQUIREMENT and RELATIVE_SHARED_REQUIREMENT are requirements which
    74 # * SHARED_REQUIREMENT and RELATIVE_SHARED_REQUIREMENT are requirements which
    73 #   represents that the current working copy/repository shares store of another
    75 #   represents that the current working copy/repository shares store of another
    74 #   repo. Hence both of them should be stored in working copy
    76 #   repo. Hence both of them should be stored in working copy
    75 # * SHARESAFE_REQUIREMENT needs to be stored in working dir to mark that rest of
    77 # * SHARESAFE_REQUIREMENT needs to be stored in working dir to mark that rest of
    76 #   the requirements are stored in store's requires
    78 #   the requirements are stored in store's requires
       
    79 # * DIRSTATE_V2_REQUIREMENT affects .hg/dirstate, of which there is one per
       
    80 #   working directory.
    77 WORKING_DIR_REQUIREMENTS = {
    81 WORKING_DIR_REQUIREMENTS = {
    78     SPARSE_REQUIREMENT,
    82     SPARSE_REQUIREMENT,
    79     SHARED_REQUIREMENT,
    83     SHARED_REQUIREMENT,
    80     RELATIVE_SHARED_REQUIREMENT,
    84     RELATIVE_SHARED_REQUIREMENT,
    81     SHARESAFE_REQUIREMENT,
    85     SHARESAFE_REQUIREMENT,
       
    86     DIRSTATE_V2_REQUIREMENT,
    82 }
    87 }