# HG changeset patch # User Raphaël Gomès # Date 1617116582 -7200 # 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 -r 64cd1496bb70 -r b409cdc6a139 mercurial/metadata.py --- 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):