comparison mercurial/upgrade_utils/actions.py @ 46638:b4c2a2af25e2

requirements: also add a fncache constant Continue the cleanup to the remaining requirements Differential Revision: https://phab.mercurial-scm.org/D10109
author Rapha?l Gom?s <rgomes@octobus.net>
date Wed, 03 Mar 2021 12:37:13 +0100
parents ab58098bebed
children fd55a9eb1507
comparison
equal deleted inserted replaced
46637:ab58098bebed 46638:b4c2a2af25e2
195 195
196 @registerformatvariant 196 @registerformatvariant
197 class fncache(requirementformatvariant): 197 class fncache(requirementformatvariant):
198 name = b'fncache' 198 name = b'fncache'
199 199
200 _requirement = b'fncache' 200 _requirement = requirements.FNCACHE_REQUIREMENT
201 201
202 default = True 202 default = True
203 203
204 description = _( 204 description = _(
205 b'long and reserved filenames may not work correctly; ' 205 b'long and reserved filenames may not work correctly; '
933 933
934 Extensions should monkeypatch this to add their custom requirements. 934 Extensions should monkeypatch this to add their custom requirements.
935 """ 935 """
936 supported = { 936 supported = {
937 requirements.DOTENCODE_REQUIREMENT, 937 requirements.DOTENCODE_REQUIREMENT,
938 b'fncache', 938 requirements.FNCACHE_REQUIREMENT,
939 requirements.GENERALDELTA_REQUIREMENT, 939 requirements.GENERALDELTA_REQUIREMENT,
940 requirements.REVLOGV1_REQUIREMENT, 940 requirements.REVLOGV1_REQUIREMENT,
941 requirements.STORE_REQUIREMENT, 941 requirements.STORE_REQUIREMENT,
942 requirements.SPARSEREVLOG_REQUIREMENT, 942 requirements.SPARSEREVLOG_REQUIREMENT,
943 requirements.SIDEDATA_REQUIREMENT, 943 requirements.SIDEDATA_REQUIREMENT,
964 bad additions because the whitelist approach is safer and will prevent 964 bad additions because the whitelist approach is safer and will prevent
965 future, unknown requirements from accidentally being added. 965 future, unknown requirements from accidentally being added.
966 """ 966 """
967 supported = { 967 supported = {
968 requirements.DOTENCODE_REQUIREMENT, 968 requirements.DOTENCODE_REQUIREMENT,
969 b'fncache', 969 requirements.FNCACHE_REQUIREMENT,
970 requirements.GENERALDELTA_REQUIREMENT, 970 requirements.GENERALDELTA_REQUIREMENT,
971 requirements.SPARSEREVLOG_REQUIREMENT, 971 requirements.SPARSEREVLOG_REQUIREMENT,
972 requirements.SIDEDATA_REQUIREMENT, 972 requirements.SIDEDATA_REQUIREMENT,
973 requirements.COPIESSDC_REQUIREMENT, 973 requirements.COPIESSDC_REQUIREMENT,
974 requirements.NODEMAP_REQUIREMENT, 974 requirements.NODEMAP_REQUIREMENT,