mercurial/repoview.py
changeset 43496 c470e699cd00
parent 43495 7bc8e49a7c35
child 43497 c093fb81404f
--- a/mercurial/repoview.py	Tue Nov 05 14:07:08 2019 -0800
+++ b/mercurial/repoview.py	Tue Nov 05 14:11:30 2019 -0800
@@ -229,6 +229,10 @@
                 if i not in self.filteredrevs:
                     return i
 
+        def __contains__(self, rev):
+            """filtered version of revlog.__contains__"""
+            return 0 <= rev < len(self) and rev not in self.filteredrevs
+
     cl.__class__ = filteredchangelog
 
     return cl