##// END OF EJS Templates
revset: added isascending and isdescending methods to _addset...
Lucas Moscovicz -
r20733:adf4ec7e default
parent child Browse files
Show More
@@ -2519,6 +2519,12 b' class _addset(object):'
2519 if bool(self._ascending) == bool(reverse):
2519 if bool(self._ascending) == bool(reverse):
2520 self.reverse()
2520 self.reverse()
2521
2521
2522 def isascending(self):
2523 return self._ascending is not None and self._ascending
2524
2525 def isdescending(self):
2526 return self._ascending is not None and not self._ascending
2527
2522 def reverse(self):
2528 def reverse(self):
2523 self._list.reverse()
2529 self._list.reverse()
2524 if self._ascending is not None:
2530 if self._ascending is not None:
General Comments 0
You need to be logged in to leave comments. Login now