changeset 20730 | 180d47e1fb68 |
parent 20729 | caa69cb223b0 |
child 20731 | 88aae5382519 |
--- a/mercurial/revset.py Fri Mar 14 10:21:56 2014 -0700 +++ b/mercurial/revset.py Fri Mar 14 10:22:29 2014 -0700 @@ -2413,6 +2413,12 @@ if self._ascending: self.reverse() + def __and__(self, other): + filterfunc = other.__contains__ + if self._ascending is not None: + return orderedlazyset(self, filterfunc, ascending=self._ascending) + return lazyset(self, filterfunc) + def _iterator(self): """Iterate over both collections without repeating elements