comparison mercurial/revset.py @ 22735:38f0ab661b0f

spanset: use base implementation for filter
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 03 Oct 2014 00:39:57 -0500
parents 8e4ff34b69b2
children 3439b66f506e
comparison
equal deleted inserted replaced
22734:8e4ff34b69b2 22735:38f0ab661b0f
2960 return self._start <= self._end 2960 return self._start <= self._end
2961 2961
2962 def isdescending(self): 2962 def isdescending(self):
2963 return self._start >= self._end 2963 return self._start >= self._end
2964 2964
2965 def filter(self, l):
2966 return orderedlazyset(self, l, ascending=self.isascending())
2967
2968 class fullreposet(_spanset): 2965 class fullreposet(_spanset):
2969 """a set containing all revisions in the repo 2966 """a set containing all revisions in the repo
2970 2967
2971 This class exists to host special optimisation. 2968 This class exists to host special optimisation.
2972 """ 2969 """