Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revset.py @ 22504:c425b22a7ca5
merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 27 Sep 2014 13:18:10 -0500 |
parents | 171015d3b30c 300e07582e9b |
children | 2434c68d82a8 |
comparison
equal
deleted
inserted
replaced
22502:e6e7ef68c879 | 22504:c425b22a7ca5 |
---|---|
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 |