# HG changeset patch # User Lucas Moscovicz # Date 2014-03-13 18:36:11 # Node ID d4f2f2d7421049d5f3ea39c8f47a3eec3e04ffdd # Parent c3e49b127de05e1f48ba464e40a3f82cb4d7541b revset: changed spanset to extend _orderedsetmixin Now spanset can use the lazy min and max methods implementation. diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -2692,7 +2692,7 @@ class _descgeneratorset(_generatorset): 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