comparison mercurial/interfaces/repository.py @ 45356:f025b97f3758

repository: introduce constant for internal phase repo requirement and use it In future we will like to much cleaner logic around which requirement is for working copy and which can go in store. To start with that, we first need to de-clutter the requirement values spread around and replace them with constants. Differential Revision: https://phab.mercurial-scm.org/D8912
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 07 Aug 2020 18:01:48 +0530
parents a1f51c7dce0f
children e58e234096de
comparison
equal deleted inserted replaced
45355:a1f51c7dce0f 45356:f025b97f3758
15 # we should move this to just "narrow" or similar. 15 # we should move this to just "narrow" or similar.
16 NARROW_REQUIREMENT = b'narrowhg-experimental' 16 NARROW_REQUIREMENT = b'narrowhg-experimental'
17 17
18 # Enables sparse working directory usage 18 # Enables sparse working directory usage
19 SPARSE_REQUIREMENT = b'exp-sparse' 19 SPARSE_REQUIREMENT = b'exp-sparse'
20
21 # Enables the internal phase which is used to hide changesets instead
22 # of stripping them
23 INTERNAL_PHASE_REQUIREMENT = b'internal-phase'
20 24
21 # Local repository feature string. 25 # Local repository feature string.
22 26
23 # Revlogs are being used for file storage. 27 # Revlogs are being used for file storage.
24 REPO_FEATURE_REVLOG_FILE_STORAGE = b'revlogfilestorage' 28 REPO_FEATURE_REVLOG_FILE_STORAGE = b'revlogfilestorage'