# HG changeset patch # User Pierre-Yves David # Date 2021-05-04 00:52:24 # Node ID ccdd280d1d0dd45f49f6858b796376475e6e5a35 # Parent 07641bafa64648b98cd07536245a3140a49e8013 sidedata: use the "feature" to detect that sidedata are enabled This is more versatile than relying on the revlogv2 requirements. Differential Revision: https://phab.mercurial-scm.org/D10657 diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -3372,7 +3372,7 @@ class localrepository(object): return self.pathto(fp.name[len(self.root) + 1 :]) def register_wanted_sidedata(self, category): - if requirementsmod.REVLOGV2_REQUIREMENT not in self.requirements: + if repository.REPO_FEATURE_SIDE_DATA not in self.features: # Only revlogv2 repos can want sidedata. return self._wanted_sidedata.add(pycompat.bytestr(category))