# HG changeset patch # User Pierre-Yves David # Date 2021-05-04 02:32:09 # Node ID 60668fce06d07d40034d56442baa787023e4872c # Parent 6c84fc9c9a90606d04ac7b16e1ee6b1490fd77a1 changelogv2: allow upgrade from and to this format Differential Revision: https://phab.mercurial-scm.org/D10661 diff --git a/mercurial/upgrade_utils/actions.py b/mercurial/upgrade_utils/actions.py --- a/mercurial/upgrade_utils/actions.py +++ b/mercurial/upgrade_utils/actions.py @@ -31,6 +31,7 @@ RECLONES_REQUIREMENTS = { requirements.GENERALDELTA_REQUIREMENT, requirements.SPARSEREVLOG_REQUIREMENT, requirements.REVLOGV2_REQUIREMENT, + requirements.CHANGELOGV2_REQUIREMENT, } @@ -949,6 +950,7 @@ def supportremovedrequirements(repo): requirements.NODEMAP_REQUIREMENT, requirements.SHARESAFE_REQUIREMENT, requirements.REVLOGV2_REQUIREMENT, + requirements.CHANGELOGV2_REQUIREMENT, requirements.REVLOGV1_REQUIREMENT, } for name in compression.compengines: @@ -979,6 +981,7 @@ def supporteddestrequirements(repo): requirements.NODEMAP_REQUIREMENT, requirements.SHARESAFE_REQUIREMENT, requirements.REVLOGV2_REQUIREMENT, + requirements.CHANGELOGV2_REQUIREMENT, } for name in compression.compengines: engine = compression.compengines[name] @@ -1009,6 +1012,7 @@ def allowednewrequirements(repo): requirements.SHARESAFE_REQUIREMENT, requirements.REVLOGV1_REQUIREMENT, requirements.REVLOGV2_REQUIREMENT, + requirements.CHANGELOGV2_REQUIREMENT, } for name in compression.compengines: engine = compression.compengines[name]