baseset: fix isascending and isdescending
We now have sufficient information to return the proper value there.
--- 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: