changeset 47091:b409cdc6a139

sidedata: register copies sidedata computer regardless of the revlog version Repositories should not gate their sidedata computers based on any requirement, only their wanted sidedata. A repository might need to generate sidedata wanted by the peer that it itself does not want. Differential Revision: https://phab.mercurial-scm.org/D10340
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 30 Mar 2021 17:03:02 +0200
parents 64cd1496bb70
children 5554aacd783f
files mercurial/metadata.py
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/metadata.py	Thu Apr 08 19:00:21 2021 +0200
+++ b/mercurial/metadata.py	Tue Mar 30 17:03:02 2021 +0200
@@ -826,12 +826,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(
-            revlogconst.KIND_CHANGELOG,
-            sidedatamod.SD_FILES,
-            (sidedatamod.SD_FILES,),
-            copies_sidedata_computer,
-        )
+    repo.register_sidedata_computer(
+        revlogconst.KIND_CHANGELOG,
+        sidedatamod.SD_FILES,
+        (sidedatamod.SD_FILES,),
+        copies_sidedata_computer,
+    )
 
 
 def getsidedataadder(srcrepo, destrepo):