baseset: fix isascending and isdescending
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 03 Oct 2014 03:31:05 -0500
changeset 22828 966860f7a1a8
parent 22827 c1107cb21df2
child 22829 36e09c25f870
baseset: fix isascending and isdescending We now have sufficient information to return the proper value there.
mercurial/revset.py
--- 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: