Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revset.py @ 20753:13c38b1aeebe
revset: changed addset to extend _orderedsetmixin
Now _addset can use the lazy min and max implementation.
author | Lucas Moscovicz <lmoscovicz@fb.com> |
---|---|
date | Fri, 14 Mar 2014 14:43:44 -0700 |
parents | 6744f4621434 |
children | f15ff553b762 |
comparison
equal
deleted
inserted
replaced
20752:6744f4621434 | 20753:13c38b1aeebe |
---|---|
2419 | 2419 |
2420 def reverse(self): | 2420 def reverse(self): |
2421 self._subset.reverse() | 2421 self._subset.reverse() |
2422 self._ascending = not self._ascending | 2422 self._ascending = not self._ascending |
2423 | 2423 |
2424 class _addset(object): | 2424 class _addset(_orderedsetmixin): |
2425 """Represent the addition of two sets | 2425 """Represent the addition of two sets |
2426 | 2426 |
2427 Wrapper structure for lazily adding two structures without losing much | 2427 Wrapper structure for lazily adding two structures without losing much |
2428 performance on the __contains__ method | 2428 performance on the __contains__ method |
2429 | 2429 |