Mercurial > hg
comparison mercurial/revset.py @ 22733:3037cad75cf8
filteredset: use base implementation for __add__
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 03 Oct 2014 01:25:35 -0500 |
parents | 52c81f2963fc |
children | 8e4ff34b69b2 |
comparison
equal
deleted
inserted
replaced
22732:52c81f2963fc | 22733:3037cad75cf8 |
---|---|
2460 it = self._subset.fastdesc | 2460 it = self._subset.fastdesc |
2461 if it is None: | 2461 if it is None: |
2462 return None | 2462 return None |
2463 return lambda: self._iterfilter(it()) | 2463 return lambda: self._iterfilter(it()) |
2464 | 2464 |
2465 def __add__(self, x): | |
2466 return _addset(self, x) | |
2467 | |
2468 def __nonzero__(self): | 2465 def __nonzero__(self): |
2469 for r in self: | 2466 for r in self: |
2470 return True | 2467 return True |
2471 return False | 2468 return False |
2472 | 2469 |