mercurial/localrepo.py
changeset 47075 5554aacd783f
parent 47073 64cd1496bb70
child 47078 223b47235d1c
--- 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):