D9772: upgrade: mark sharesafe improvement as only touching requirements
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Thu Jan 14 12:54:38 UTC 2021
pulkit created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Upgrading the repository to use share safe functionality only touches
requirements.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D9772
AFFECTED FILES
mercurial/upgrade_utils/actions.py
CHANGE DETAILS
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
@@ -292,6 +292,12 @@
b' New shares will be created in safe mode.'
)
+ # upgrade only needs to change the requirements
+ touches_filelogs = False
+ touches_manifests = False
+ touches_changelog = False
+ touches_requirements = True
+
@registerformatvariant
class sparserevlog(requirementformatvariant):
To: pulkit, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list