Mercurial > hg
changeset 22828:966860f7a1a8
baseset: fix isascending and isdescending
We now have sufficient information to return the proper value there.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 03 Oct 2014 03:31:05 -0500 |
parents | c1107cb21df2 |
children | 36e09c25f870 |
files | mercurial/revset.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revset.py Fri Oct 03 03:26:18 2014 -0500 +++ b/mercurial/revset.py Fri Oct 03 03:31:05 2014 -0500 @@ -2411,13 +2411,13 @@ """Returns True if the collection is ascending order, False if not. This is part of the mandatory API for smartset.""" - return False + return self._ascending is not None and self._ascending def isdescending(self): """Returns True if the collection is descending order, False if not. This is part of the mandatory API for smartset.""" - return False + return self._ascending is not None and not self._ascending def first(self): if self: