Show More
@@ -405,10 +405,6 b' class changelog(revlog.revlog):' | |||||
405 | self.filteredrevs = frozenset() |
|
405 | self.filteredrevs = frozenset() | |
406 | self._copiesstorage = opener.options.get(b'copies-storage') |
|
406 | self._copiesstorage = opener.options.get(b'copies-storage') | |
407 |
|
407 | |||
408 | def __contains__(self, rev): |
|
|||
409 | """filtered version of revlog.__contains__""" |
|
|||
410 | return 0 <= rev < len(self) and rev not in self.filteredrevs |
|
|||
411 |
|
||||
412 | def __iter__(self): |
|
408 | def __iter__(self): | |
413 | """filtered version of revlog.__iter__""" |
|
409 | """filtered version of revlog.__iter__""" | |
414 | if len(self.filteredrevs) == 0: |
|
410 | if len(self.filteredrevs) == 0: |
@@ -229,6 +229,10 b' def wrapchangelog(unfichangelog, filtere' | |||||
229 | if i not in self.filteredrevs: |
|
229 | if i not in self.filteredrevs: | |
230 | return i |
|
230 | return i | |
231 |
|
231 | |||
|
232 | def __contains__(self, rev): | |||
|
233 | """filtered version of revlog.__contains__""" | |||
|
234 | return 0 <= rev < len(self) and rev not in self.filteredrevs | |||
|
235 | ||||
232 | cl.__class__ = filteredchangelog |
|
236 | cl.__class__ = filteredchangelog | |
233 |
|
237 | |||
234 | return cl |
|
238 | return cl |
General Comments 0
You need to be logged in to leave comments.
Login now