Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revset.py @ 22721:adc43967d401
lazyset: drop now useless ascending/descending definition
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Thu, 02 Oct 2014 18:52:09 -0500 |
parents | 4388f99c5512 |
children | e8832cf1abf6 |
comparison
equal
deleted
inserted
replaced
22720:4388f99c5512 | 22721:adc43967d401 |
---|---|
2414 """ | 2414 """ |
2415 self._subset = subset | 2415 self._subset = subset |
2416 self._condition = condition | 2416 self._condition = condition |
2417 self._cache = {} | 2417 self._cache = {} |
2418 | 2418 |
2419 def ascending(self): | |
2420 self._subset.sort() | |
2421 | |
2422 def descending(self): | |
2423 self._subset.sort(reverse=True) | |
2424 | |
2425 def min(self): | 2419 def min(self): |
2426 return min(self) | 2420 return min(self) |
2427 | 2421 |
2428 def max(self): | 2422 def max(self): |
2429 return max(self) | 2423 return max(self) |