merge with stable
authorMatt Mackall <mpm@selenic.com>
Sat, 27 Sep 2014 13:18:10 -0500
changeset 22504 c425b22a7ca5
parent 22502 e6e7ef68c879 (current diff)
parent 22503 300e07582e9b (diff)
child 22507 5c00c5298f98
merge with stable
mercurial/revset.py
--- a/mercurial/revset.py	Mon Sep 22 16:14:08 2014 -0500
+++ b/mercurial/revset.py	Sat Sep 27 13:18:10 2014 -0500
@@ -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.