Patchwork D10340: sidedata: register copies sidedata computer regardless of the revlog version

login
register
mail settings
Submitter phabricator
Date April 9, 2021, 8:49 a.m.
Message ID <differential-rev-PHID-DREV-bnweq4butgjcyfjyh55f-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48657/
State Superseded
Headers show

Comments

phabricator - April 9, 2021, 8:49 a.m.
Alphare created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Repositories should not gate their sidedata computers based on any requirement,
  only their wanted sidedata.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D10340

AFFECTED FILES
  mercurial/metadata.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/metadata.py b/mercurial/metadata.py
--- a/mercurial/metadata.py
+++ b/mercurial/metadata.py
@@ -828,12 +828,12 @@ 
 def set_sidedata_spec_for_repo(repo):
     if requirementsmod.COPIESSDC_REQUIREMENT in repo.requirements:
         repo.register_wanted_sidedata(sidedatamod.SD_FILES)
-        repo.register_sidedata_computer(
-            b"changelog",
-            sidedatamod.SD_FILES,
-            (sidedatamod.SD_FILES,),
-            copies_sidedata_computer,
-        )
+    repo.register_sidedata_computer(
+        b"changelog",
+        sidedatamod.SD_FILES,
+        (sidedatamod.SD_FILES,),
+        copies_sidedata_computer,
+    )
 
 
 def getsidedataadder(srcrepo, destrepo):