Mercurial > public > mercurial-scm > hg-stable
diff mercurial/metadata.py @ 47090:64cd1496bb70
revlog: replace the old `revlog_kind` approach with the new `target` one
The new `target` attribute supersedes the previous one.
Differential Revision: https://phab.mercurial-scm.org/D10353
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 08 Apr 2021 19:00:21 +0200 |
parents | d55b71393907 |
children | b409cdc6a139 |
line wrap: on
line diff
--- a/mercurial/metadata.py Tue Apr 06 05:20:24 2021 +0200 +++ b/mercurial/metadata.py Thu Apr 08 19:00:21 2021 +0200 @@ -20,6 +20,7 @@ ) from .revlogutils import ( + constants as revlogconst, flagutil as sidedataflag, sidedata as sidedatamod, ) @@ -826,7 +827,7 @@ if requirementsmod.COPIESSDC_REQUIREMENT in repo.requirements: repo.register_wanted_sidedata(sidedatamod.SD_FILES) repo.register_sidedata_computer( - b"changelog", + revlogconst.KIND_CHANGELOG, sidedatamod.SD_FILES, (sidedatamod.SD_FILES,), copies_sidedata_computer,