##// END OF EJS Templates
revset: add an optimised baseset.__contains__ (issue4371)...
Pierre-Yves David -
r22503:300e0758 stable
parent child Browse files
Show More
@@ -2228,6 +2228,10 b' class baseset(list):'
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
General Comments 0
You need to be logged in to leave comments. Login now