Patchwork D6706: stack: remove unnecessary reverse() predicate

login
register
mail settings
Submitter phabricator
Date Aug. 6, 2019, 1:02 p.m.
Message ID <2b201a38c920896caf7f297d545d5701@localhost.localdomain>
Download mbox | patch
Permalink /patch/41172/
State Not Applicable
Headers show

Comments

phabricator - Aug. 6, 2019, 1:02 p.m.
Closed by commit rHG77c52ce50e6a: stack: remove unnecessary reverse() predicate (authored by av6).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6706?vs=16106&id=16138

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6706/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D6706

AFFECTED FILES
  mercurial/stack.py

CHANGE DETAILS




To: av6, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/mercurial/stack.py b/mercurial/stack.py
--- a/mercurial/stack.py
+++ b/mercurial/stack.py
@@ -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()