comparison mercurial/requirements.py @ 45374:bd56597b2254

requirements: introduce a set of working directory specific requirements Some requirements like the SPARSE_REQUIREMENT is working directory specific and cannot be shared. We add a set which will contain all these requirements. This is not the best we can do, I think having a rich requirement class will be much better but that will be out of scope for this series. Differential Revision: https://phab.mercurial-scm.org/D8924
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 10 Aug 2020 18:08:15 -0700
parents d7dcc75a3eae
children 034d94f8761b
comparison
equal deleted inserted replaced
45373:d7dcc75a3eae 45374:bd56597b2254
42 # copies related information in changeset's sidedata. 42 # copies related information in changeset's sidedata.
43 COPIESSDC_REQUIREMENT = b'exp-copies-sidedata-changeset' 43 COPIESSDC_REQUIREMENT = b'exp-copies-sidedata-changeset'
44 44
45 # The repository use persistent nodemap for the changelog and the manifest. 45 # The repository use persistent nodemap for the changelog and the manifest.
46 NODEMAP_REQUIREMENT = b'persistent-nodemap' 46 NODEMAP_REQUIREMENT = b'persistent-nodemap'
47
48 # List of requirements which are working directory specific
49 # These requirements cannot be shared between repositories if they
50 # share the same store
51 WORKING_DIR_REQUIREMENTS = {SPARSE_REQUIREMENT}