diff -r abf4e98b8ff2 -r 300e07582e9b mercurial/revset.py --- 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.