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).
--- a/mercurial/upgrade_utils/actions.py Thu May 19 01:24:16 2022 +0100
+++ b/mercurial/upgrade_utils/actions.py Thu May 19 01:34:51 2022 +0100
@@ -362,6 +362,9 @@
b'Allows to use more efficient algorithm to deal with ' b'copy tracing.'
)
+ touches_filelogs = False
+ touches_manifests = False
+
@registerformatvariant
class revlogv2(requirementformatvariant):
--- a/tests/test-copies-chain-merge.t Thu May 19 01:24:16 2022 +0100
+++ b/tests/test-copies-chain-merge.t Thu May 19 01:34:51 2022 +0100
@@ -1661,9 +1661,7 @@
added: exp-changelog-v2, exp-copies-sidedata-changeset
processed revlogs:
- - all-filelogs
- changelog
- - manifest
#endif
@@ -1689,9 +1687,7 @@
added: exp-changelog-v2, exp-copies-sidedata-changeset
processed revlogs:
- - all-filelogs
- changelog
- - manifest
#endif
--- a/tests/test-copies-in-changeset.t Thu May 19 01:24:16 2022 +0100
+++ b/tests/test-copies-in-changeset.t Thu May 19 01:34:51 2022 +0100
@@ -443,9 +443,7 @@
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 @@
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