# HG changeset patch # User Pierre-Yves David # Date 2022-05-19 00:34:51 # Node ID 04a812f507be50dbefc83745ef3bc60d0601d60e # Parent 801ef401597e8e912894c78d701c3e1944ff02be copies-sdc: mark upgrade action as changelog only We don't need to recompute the other revlog to add the changelog-v2 feature. This simplify upgrade that use copies-sdc (as shown in the tests). 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 @@ -362,6 +362,9 @@ class copiessdc(requirementformatvariant b'Allows to use more efficient algorithm to deal with ' b'copy tracing.' ) + touches_filelogs = False + touches_manifests = False + @registerformatvariant class revlogv2(requirementformatvariant): diff --git a/tests/test-copies-chain-merge.t b/tests/test-copies-chain-merge.t --- a/tests/test-copies-chain-merge.t +++ b/tests/test-copies-chain-merge.t @@ -1661,9 +1661,7 @@ We upgrade a repository that is not usin added: exp-changelog-v2, exp-copies-sidedata-changeset processed revlogs: - - all-filelogs - changelog - - manifest #endif @@ -1689,9 +1687,7 @@ We upgrade a repository that is not usin added: exp-changelog-v2, exp-copies-sidedata-changeset processed revlogs: - - all-filelogs - changelog - - manifest #endif diff --git a/tests/test-copies-in-changeset.t b/tests/test-copies-in-changeset.t --- a/tests/test-copies-in-changeset.t +++ b/tests/test-copies-in-changeset.t @@ -443,9 +443,7 @@ downgrading removed: exp-changelog-v2, exp-copies-sidedata-changeset processed revlogs: - - all-filelogs - changelog - - manifest $ hg debugformat -v | egrep 'format-variant|revlog-v2|copies-sdc|changelog-v2' format-variant repo config default @@ -470,9 +468,7 @@ upgrading added: exp-changelog-v2, exp-copies-sidedata-changeset processed revlogs: - - all-filelogs - changelog - - manifest $ hg debugformat -v | egrep 'format-variant|revlog-v2|copies-sdc|changelog-v2' format-variant repo config default