Mercurial > hg
comparison mercurial/revset.py @ 22752:7bbc35c43bff
spanset: drop _orderedsetmixin inheritance
The min/max method are as well provided by abstractsmartset.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Thu, 02 Oct 2014 19:47:33 -0500 |
parents | e76aec3eddc4 |
children | 16c20403de80 |
comparison
equal
deleted
inserted
replaced
22751:e76aec3eddc4 | 22752:7bbc35c43bff |
---|---|
2784 if start is None and end is None: | 2784 if start is None and end is None: |
2785 return fullreposet(repo) | 2785 return fullreposet(repo) |
2786 return _spanset(repo, start, end) | 2786 return _spanset(repo, start, end) |
2787 | 2787 |
2788 | 2788 |
2789 class _spanset(_orderedsetmixin, abstractsmartset): | 2789 class _spanset(abstractsmartset): |
2790 """Duck type for baseset class which represents a range of revisions and | 2790 """Duck type for baseset class which represents a range of revisions and |
2791 can work lazily and without having all the range in memory | 2791 can work lazily and without having all the range in memory |
2792 | 2792 |
2793 Note that spanset(x, y) behave almost like xrange(x, y) except for two | 2793 Note that spanset(x, y) behave almost like xrange(x, y) except for two |
2794 notable points: | 2794 notable points: |