Patchwork D9772: upgrade: mark sharesafe improvement as only touching requirements

login
register
mail settings
Submitter phabricator
Date Jan. 14, 2021, 12:54 p.m.
Message ID <differential-rev-PHID-DREV-iiqao5teqxaggzin6qwc-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48082/
State Superseded
Headers show

Comments

phabricator - Jan. 14, 2021, 12:54 p.m.
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




To: pulkit, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

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):