##// END OF EJS Templates
repoview: move changelog.flags() override to filteredchangelog...
Martin von Zweigbergk -
r43758:61c37210 default
parent child Browse files
Show More
@@ -404,12 +404,6 b' class changelog(revlog.revlog):'
404 self.filteredrevs = frozenset()
404 self.filteredrevs = frozenset()
405 self._copiesstorage = opener.options.get(b'copies-storage')
405 self._copiesstorage = opener.options.get(b'copies-storage')
406
406
407 def flags(self, rev):
408 """filtered version of revlog.flags"""
409 if rev in self.filteredrevs:
410 raise error.FilteredIndexError(rev)
411 return super(changelog, self).flags(rev)
412
413 def delayupdate(self, tr):
407 def delayupdate(self, tr):
414 b"delay visibility of index updates to other readers"
408 b"delay visibility of index updates to other readers"
415
409
@@ -325,6 +325,12 b' def wrapchangelog(unfichangelog, filtere'
325 raise error.FilteredIndexError(rev)
325 raise error.FilteredIndexError(rev)
326 return super(filteredchangelog, self).parentrevs(rev)
326 return super(filteredchangelog, self).parentrevs(rev)
327
327
328 def flags(self, rev):
329 """filtered version of revlog.flags"""
330 if rev in self.filteredrevs:
331 raise error.FilteredIndexError(rev)
332 return super(filteredchangelog, self).flags(rev)
333
328 cl.__class__ = filteredchangelog
334 cl.__class__ = filteredchangelog
329
335
330 return cl
336 return cl
General Comments 0
You need to be logged in to leave comments. Login now