diff -r b409cdc6a139 -r 5554aacd783f mercurial/localrepo.py --- a/mercurial/localrepo.py Tue Mar 30 17:03:02 2021 +0200 +++ b/mercurial/localrepo.py Thu Apr 08 16:39:39 2021 +0200 @@ -3365,6 +3365,9 @@ return self.pathto(fp.name[len(self.root) + 1 :]) def register_wanted_sidedata(self, category): + if requirementsmod.REVLOGV2_REQUIREMENT not in self.requirements: + # Only revlogv2 repos can want sidedata. + return self._wanted_sidedata.add(pycompat.bytestr(category)) def register_sidedata_computer(self, kind, category, keys, computer):