diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -3372,7 +3372,7 @@ 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))