changeset 22504:c425b22a7ca5

merge with stable
author Matt Mackall <mpm@selenic.com>
date Sat, 27 Sep 2014 13:18:10 -0500
parents e6e7ef68c879 (current diff) 300e07582e9b (diff)
children 5c00c5298f98
files mercurial/revset.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.