Mercurial > hg
changeset 22835:8376d76f77dd
smartset: drop infamous ascending, descending
All your friends are dead.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 07 Oct 2014 01:46:53 -0700 |
parents | 9e316ea0bf52 |
children | 5a831e4e6d7a |
files | mercurial/revset.py |
diffstat | 1 files changed, 0 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revset.py Tue Oct 07 01:41:14 2014 -0700 +++ b/mercurial/revset.py Tue Oct 07 01:46:53 2014 -0700 @@ -2228,22 +2228,10 @@ """True if the set will iterate in ascending order""" raise NotImplementedError() - def ascending(self): - """Sorts the set in ascending order (in place). - - This is part of the mandatory API for smartset.""" - self.sort() - def isdescending(self): """True if the set will iterate in descending order""" raise NotImplementedError() - def descending(self): - """Sorts the set in descending order (in place). - - This is part of the mandatory API for smartset.""" - self.sort(reverse=True) - def min(self): """return the minimum element in the set""" if self.fastasc is not None: