comparison mercurial/upgrade_utils/actions.py @ 47264:60668fce06d0

changelogv2: allow upgrade from and to this format Differential Revision: https://phab.mercurial-scm.org/D10661
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 04 May 2021 04:32:09 +0200
parents 6c84fc9c9a90
children ed0d54b20c5b
comparison
equal deleted inserted replaced
47263:6c84fc9c9a90 47264:60668fce06d0
29 # list of requirements that request a clone of all revlog if added/removed 29 # list of requirements that request a clone of all revlog if added/removed
30 RECLONES_REQUIREMENTS = { 30 RECLONES_REQUIREMENTS = {
31 requirements.GENERALDELTA_REQUIREMENT, 31 requirements.GENERALDELTA_REQUIREMENT,
32 requirements.SPARSEREVLOG_REQUIREMENT, 32 requirements.SPARSEREVLOG_REQUIREMENT,
33 requirements.REVLOGV2_REQUIREMENT, 33 requirements.REVLOGV2_REQUIREMENT,
34 requirements.CHANGELOGV2_REQUIREMENT,
34 } 35 }
35 36
36 37
37 def preservedrequirements(repo): 38 def preservedrequirements(repo):
38 return set() 39 return set()
947 requirements.SPARSEREVLOG_REQUIREMENT, 948 requirements.SPARSEREVLOG_REQUIREMENT,
948 requirements.COPIESSDC_REQUIREMENT, 949 requirements.COPIESSDC_REQUIREMENT,
949 requirements.NODEMAP_REQUIREMENT, 950 requirements.NODEMAP_REQUIREMENT,
950 requirements.SHARESAFE_REQUIREMENT, 951 requirements.SHARESAFE_REQUIREMENT,
951 requirements.REVLOGV2_REQUIREMENT, 952 requirements.REVLOGV2_REQUIREMENT,
953 requirements.CHANGELOGV2_REQUIREMENT,
952 requirements.REVLOGV1_REQUIREMENT, 954 requirements.REVLOGV1_REQUIREMENT,
953 } 955 }
954 for name in compression.compengines: 956 for name in compression.compengines:
955 engine = compression.compengines[name] 957 engine = compression.compengines[name]
956 if engine.available() and engine.revlogheader(): 958 if engine.available() and engine.revlogheader():
977 requirements.SPARSEREVLOG_REQUIREMENT, 979 requirements.SPARSEREVLOG_REQUIREMENT,
978 requirements.COPIESSDC_REQUIREMENT, 980 requirements.COPIESSDC_REQUIREMENT,
979 requirements.NODEMAP_REQUIREMENT, 981 requirements.NODEMAP_REQUIREMENT,
980 requirements.SHARESAFE_REQUIREMENT, 982 requirements.SHARESAFE_REQUIREMENT,
981 requirements.REVLOGV2_REQUIREMENT, 983 requirements.REVLOGV2_REQUIREMENT,
984 requirements.CHANGELOGV2_REQUIREMENT,
982 } 985 }
983 for name in compression.compengines: 986 for name in compression.compengines:
984 engine = compression.compengines[name] 987 engine = compression.compengines[name]
985 if engine.available() and engine.revlogheader(): 988 if engine.available() and engine.revlogheader():
986 supported.add(b'exp-compression-%s' % name) 989 supported.add(b'exp-compression-%s' % name)
1007 requirements.COPIESSDC_REQUIREMENT, 1010 requirements.COPIESSDC_REQUIREMENT,
1008 requirements.NODEMAP_REQUIREMENT, 1011 requirements.NODEMAP_REQUIREMENT,
1009 requirements.SHARESAFE_REQUIREMENT, 1012 requirements.SHARESAFE_REQUIREMENT,
1010 requirements.REVLOGV1_REQUIREMENT, 1013 requirements.REVLOGV1_REQUIREMENT,
1011 requirements.REVLOGV2_REQUIREMENT, 1014 requirements.REVLOGV2_REQUIREMENT,
1015 requirements.CHANGELOGV2_REQUIREMENT,
1012 } 1016 }
1013 for name in compression.compengines: 1017 for name in compression.compengines:
1014 engine = compression.compengines[name] 1018 engine = compression.compengines[name]
1015 if engine.available() and engine.revlogheader(): 1019 if engine.available() and engine.revlogheader():
1016 supported.add(b'exp-compression-%s' % name) 1020 supported.add(b'exp-compression-%s' % name)