mercurial/revset.py
branchstable
changeset 22503 300e07582e9b
parent 22105 3efe3c2609e0
child 22504 c425b22a7ca5
--- a/mercurial/revset.py	Sun Sep 21 10:31:34 2014 -0500
+++ b/mercurial/revset.py	Tue Sep 16 23:59:29 2014 -0700
@@ -2228,6 +2228,10 @@
             self._set = set(self)
         return self._set
 
+    @util.propertycache
+    def __contains__(self):
+        return self.set().__contains__
+
     def __sub__(self, other):
         """Returns a new object with the substraction of the two collections.