diff mercurial/revset.py @ 22801:6af9e9b6af39

generatorset: implement isascending and isdescending
author Pierre-Yves David <pierre-yves.david@fb.com>
date Sat, 04 Oct 2014 06:17:18 -0700
parents 29a8c20e14a8
children 1fcd361efaf4
line wrap: on
line diff
--- a/mercurial/revset.py	Fri Oct 03 21:11:56 2014 -0700
+++ b/mercurial/revset.py	Sat Oct 04 06:17:18 2014 -0700
@@ -2739,6 +2739,12 @@
     def reverse(self):
         self._ascending = not self._ascending
 
+    def isascending(self):
+        return self._ascending
+
+    def isdescending(self):
+        return not self._ascending
+
 def spanset(repo, start=None, end=None):
     """factory function to dispatch between fullreposet and actual spanset