##// END OF EJS Templates
revset: ensure we are reversing a list (issue3530)
Bryan O'Sullivan -
r17100:ee2370d8 default
parent child Browse files
Show More
@@ -1151,6 +1151,8 def reverse(repo, subset, x):
1151 1151 Reverse order of set.
1152 1152 """
1153 1153 l = getset(repo, subset, x)
1154 if not isinstance(l, list):
1155 l = list(l)
1154 1156 l.reverse()
1155 1157 return l
1156 1158
@@ -372,6 +372,17 quoting needed
372 372 4
373 373 3
374 374 2
375 $ log 'reverse(all())'
376 9
377 8
378 7
379 6
380 5
381 4
382 3
383 2
384 1
385 0
375 386 $ log 'rev(5)'
376 387 5
377 388 $ log 'sort(limit(reverse(all()), 3))'
General Comments 0
You need to be logged in to leave comments. Login now