revset: changed spanset to extend _orderedsetmixin
authorLucas Moscovicz <lmoscovicz@fb.com>
Thu, 13 Mar 2014 11:36:11 -0700
changeset 20750 d4f2f2d74210
parent 20749 c3e49b127de0
child 20751 91a3d50f0e3a
revset: changed spanset to extend _orderedsetmixin Now spanset can use the lazy min and max methods implementation.
mercurial/revset.py
--- a/mercurial/revset.py	Wed Mar 12 16:40:18 2014 -0700
+++ b/mercurial/revset.py	Thu Mar 13 11:36:11 2014 -0700
@@ -2692,7 +2692,7 @@
         self._cache[x] = False
         return False
 
-class spanset(object):
+class spanset(_orderedsetmixin):
     """Duck type for baseset class which represents a range of revisions and
     can work lazily and without having all the range in memory