# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2020-08-11 01:08:15 # Node ID bd56597b225455b1d34501c043e36e62c1aa4748 # Parent d7dcc75a3eae45240055e19e883696c113578a3d 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 diff --git a/mercurial/requirements.py b/mercurial/requirements.py --- a/mercurial/requirements.py +++ b/mercurial/requirements.py @@ -44,3 +44,8 @@ COPIESSDC_REQUIREMENT = b'exp-copies-sid # The repository use persistent nodemap for the changelog and the manifest. NODEMAP_REQUIREMENT = b'persistent-nodemap' + +# List of requirements which are working directory specific +# These requirements cannot be shared between repositories if they +# share the same store +WORKING_DIR_REQUIREMENTS = {SPARSE_REQUIREMENT}