##// END OF EJS Templates
revset: fix spanset.isascending() to honor sort() or reverse() request...
Yuya Nishihara -
r23826:c90d1953 stable
parent child Browse files
Show More
@@ -2913,10 +2913,10 b' class _spanset(abstractsmartset):'
2913 2913 return abs(self._end - self._start) - count
2914 2914
2915 2915 def isascending(self):
2916 return self._start <= self._end
2916 return self._ascending
2917 2917
2918 2918 def isdescending(self):
2919 return self._start >= self._end
2919 return not self._ascending
2920 2920
2921 2921 def first(self):
2922 2922 if self._ascending:
@@ -496,6 +496,9 b' Test explicit numeric revision'
496 496 2
497 497 1
498 498 0
499 $ log 'reverse(all()) & filelog(b)'
500 4
501 1
499 502 $ log 'rev(5)'
500 503 5
501 504 $ log 'sort(limit(reverse(all()), 3))'
General Comments 0
You need to be logged in to leave comments. Login now