# HG changeset patch # User Raphaël Gomès # Date 2021-03-30 15:03:02 # Node ID b409cdc6a139be342bb2c61ba670690790db9121 # Parent 64cd1496bb700dbe6084ee1e06a3734f7a2030e2 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 diff --git a/mercurial/metadata.py b/mercurial/metadata.py --- a/mercurial/metadata.py +++ b/mercurial/metadata.py @@ -826,12 +826,12 @@ def copies_sidedata_computer(repo, revlo 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):