# HG changeset patch # User Matt Mackall # Date 1411841890 18000 # Node ID c425b22a7ca56e15b63415730862776b72f07153 # Parent e6e7ef68c879b55c1b2c0ebe00d8cbdbc929dbed# Parent 300e07582e9b9eda73f0d0456ca2f4b3c0dc2f8c merge with stable diff -r e6e7ef68c879 -r c425b22a7ca5 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.