##// END OF EJS Templates
sidedata: use the "feature" to detect that sidedata are enabled...
marmoute -
r48034:ccdd280d default
parent child Browse files
Show More
@@ -3372,7 +3372,7 b' class localrepository(object):'
3372 return self.pathto(fp.name[len(self.root) + 1 :])
3372 return self.pathto(fp.name[len(self.root) + 1 :])
3373
3373
3374 def register_wanted_sidedata(self, category):
3374 def register_wanted_sidedata(self, category):
3375 if requirementsmod.REVLOGV2_REQUIREMENT not in self.requirements:
3375 if repository.REPO_FEATURE_SIDE_DATA not in self.features:
3376 # Only revlogv2 repos can want sidedata.
3376 # Only revlogv2 repos can want sidedata.
3377 return
3377 return
3378 self._wanted_sidedata.add(pycompat.bytestr(category))
3378 self._wanted_sidedata.add(pycompat.bytestr(category))
General Comments 0
You need to be logged in to leave comments. Login now