mercurial/revset.py
branchstable
changeset 22503 300e07582e9b
parent 22105 3efe3c2609e0
child 22504 c425b22a7ca5
equal deleted inserted replaced
22493:abf4e98b8ff2 22503:300e07582e9b
  2226         This is part of the mandatory API for smartset."""
  2226         This is part of the mandatory API for smartset."""
  2227         if not self._set:
  2227         if not self._set:
  2228             self._set = set(self)
  2228             self._set = set(self)
  2229         return self._set
  2229         return self._set
  2230 
  2230 
       
  2231     @util.propertycache
       
  2232     def __contains__(self):
       
  2233         return self.set().__contains__
       
  2234 
  2231     def __sub__(self, other):
  2235     def __sub__(self, other):
  2232         """Returns a new object with the substraction of the two collections.
  2236         """Returns a new object with the substraction of the two collections.
  2233 
  2237 
  2234         This is part of the mandatory API for smartset."""
  2238         This is part of the mandatory API for smartset."""
  2235         # If we are operating on 2 baseset, do the computation now since all
  2239         # If we are operating on 2 baseset, do the computation now since all