upgrade: mark sharesafe improvement as only touching requirements
authorPulkit Goyal <7895pulkit@gmail.com>
Thu, 14 Jan 2021 16:57:11 +0530
changeset 46449 60ea95471b83
parent 46448 a83e1496d943
child 46450 8b02f132adf6
upgrade: mark sharesafe improvement as only touching requirements Upgrading the repository to use share safe functionality only touches requirements. Differential Revision: https://phab.mercurial-scm.org/D9772
mercurial/upgrade_utils/actions.py
--- a/mercurial/upgrade_utils/actions.py	Mon Dec 14 16:20:00 2020 +0530
+++ b/mercurial/upgrade_utils/actions.py	Thu Jan 14 16:57:11 2021 +0530
@@ -291,6 +291,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):