diff -r 3e3fb15bfeea -r 77c52ce50e6a mercurial/stack.py --- 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()