comparison mercurial/revset.py @ 22748:852191f71df1

addset: use base implementation for __filter__
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 03 Oct 2014 01:34:25 -0500
parents 510432d66638
children 672f15ee2a1d
comparison
equal deleted inserted replaced
22747:510432d66638 22748:852191f71df1
2584 def _list(self): 2584 def _list(self):
2585 if not self._genlist: 2585 if not self._genlist:
2586 self._genlist = baseset(self._iterator()) 2586 self._genlist = baseset(self._iterator())
2587 return self._genlist 2587 return self._genlist
2588 2588
2589 def filter(self, condition):
2590 if self._ascending is not None:
2591 return orderedlazyset(self, condition, ascending=self._ascending)
2592 return filteredset(self, condition)
2593
2594 def ascending(self): 2589 def ascending(self):
2595 if self._ascending is None: 2590 if self._ascending is None:
2596 self.sort() 2591 self.sort()
2597 self._ascending = True 2592 self._ascending = True
2598 else: 2593 else: