comparison mercurial/upgrade_utils/actions.py @ 50643:c814101560d9

tree-manifest: allow `debugupgraderepo` to run on tree manifest repo There does not seems to be anything wrong with running the current logic on them. So we remove the limitation.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 31 May 2023 18:08:56 +0100
parents d12446766a35
children d718eddf01d9 704c3d0878d9
comparison
equal deleted inserted replaced
50641:89556caf3c66 50643:c814101560d9
948 948
949 An upgrade cannot be performed if the source repository contains a 949 An upgrade cannot be performed if the source repository contains a
950 requirements in the returned set. 950 requirements in the returned set.
951 """ 951 """
952 return { 952 return {
953 # The upgrade code does not yet support these experimental features.
954 # This is an artificial limitation.
955 requirements.TREEMANIFEST_REQUIREMENT,
956 # This was a precursor to generaldelta and was never enabled by default. 953 # This was a precursor to generaldelta and was never enabled by default.
957 # It should (hopefully) not exist in the wild. 954 # It should (hopefully) not exist in the wild.
958 b'parentdelta', 955 b'parentdelta',
959 } 956 }
960 957
1050 requirements.REVLOGV2_REQUIREMENT, 1047 requirements.REVLOGV2_REQUIREMENT,
1051 requirements.SHARED_REQUIREMENT, 1048 requirements.SHARED_REQUIREMENT,
1052 requirements.SHARESAFE_REQUIREMENT, 1049 requirements.SHARESAFE_REQUIREMENT,
1053 requirements.SPARSEREVLOG_REQUIREMENT, 1050 requirements.SPARSEREVLOG_REQUIREMENT,
1054 requirements.STORE_REQUIREMENT, 1051 requirements.STORE_REQUIREMENT,
1052 requirements.TREEMANIFEST_REQUIREMENT,
1055 requirements.NARROW_REQUIREMENT, 1053 requirements.NARROW_REQUIREMENT,
1056 } 1054 }
1057 for name in compression.compengines: 1055 for name in compression.compengines:
1058 engine = compression.compengines[name] 1056 engine = compression.compengines[name]
1059 if engine.available() and engine.revlogheader(): 1057 if engine.available() and engine.revlogheader():