stack: remove unnecessary reverse() predicate
Stack already sorts revisions, so no need to do it twice.
This change was a part of D2400, which didn't land for other reasons. See also
D2399, where this change was suggested.
Differential Revision: https://phab.mercurial-scm.org/D6706
--- a/mercurial/stack.py Sat Aug 03 16:47:49 2019 -0700
+++ b/mercurial/stack.py Thu Jul 18 17:07:34 2019 +0800
@@ -22,7 +22,7 @@
if rev is None:
rev = '.'
- revspec = 'reverse(only(%s) and not public() and not ::merge())'
+ revspec = 'only(%s) and not public() and not ::merge()'
revset = revsetlang.formatspec(revspec, rev)
revisions = scmutil.revrange(repo, [revset])
revisions.sort()