##// END OF EJS Templates
repoview: move changelog.revs() override to filteredchangelog...
Martin von Zweigbergk -
r43751:5ade4728 default
parent child Browse files
Show More
@@ -405,12 +405,6 b' class changelog(revlog.revlog):'
405 405 self.filteredrevs = frozenset()
406 406 self._copiesstorage = opener.options.get(b'copies-storage')
407 407
408 def revs(self, start=0, stop=None):
409 """filtered version of revlog.revs"""
410 for i in super(changelog, self).revs(start, stop):
411 if i not in self.filteredrevs:
412 yield i
413
414 408 def _checknofilteredinrevs(self, revs):
415 409 """raise the appropriate error if 'revs' contains a filtered revision
416 410
@@ -247,6 +247,12 b' def wrapchangelog(unfichangelog, filtere'
247 247
248 248 return filterediter()
249 249
250 def revs(self, start=0, stop=None):
251 """filtered version of revlog.revs"""
252 for i in super(filteredchangelog, self).revs(start, stop):
253 if i not in self.filteredrevs:
254 yield i
255
250 256 cl.__class__ = filteredchangelog
251 257
252 258 return cl
General Comments 0
You need to be logged in to leave comments. Login now