comparison mercurial/revset.py @ 20750:d4f2f2d74210

revset: changed spanset to extend _orderedsetmixin Now spanset can use the lazy min and max methods implementation.
author Lucas Moscovicz <lmoscovicz@fb.com>
date Thu, 13 Mar 2014 11:36:11 -0700
parents c3e49b127de0
children 91a3d50f0e3a
comparison
equal deleted inserted replaced
20749:c3e49b127de0 20750:d4f2f2d74210
2690 break 2690 break
2691 2691
2692 self._cache[x] = False 2692 self._cache[x] = False
2693 return False 2693 return False
2694 2694
2695 class spanset(object): 2695 class spanset(_orderedsetmixin):
2696 """Duck type for baseset class which represents a range of revisions and 2696 """Duck type for baseset class which represents a range of revisions and
2697 can work lazily and without having all the range in memory 2697 can work lazily and without having all the range in memory
2698 2698
2699 Note that spanset(x, y) behave almost like xrange(x, y) except for two 2699 Note that spanset(x, y) behave almost like xrange(x, y) except for two
2700 notable points: 2700 notable points: