changeset 42698:77c52ce50e6a

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
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 18 Jul 2019 17:07:34 +0800
parents 3e3fb15bfeea
children 911e25dc9d8c
files mercurial/stack.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()