Mercurial > hg-stable
changeset 49219:04a812f507be
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).
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 19 May 2022 01:34:51 +0100 |
parents | 801ef401597e |
children | a17ffde1e71b |
files | mercurial/upgrade_utils/actions.py tests/test-copies-chain-merge.t tests/test-copies-in-changeset.t |
diffstat | 3 files changed, 3 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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