Patchwork D6707: revset: drop argument when it's None

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

Comments

phabricator - Aug. 6, 2019, 1:02 p.m.
Closed by commit rHG911e25dc9d8c: revset: drop argument when it&#039;s None (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/D6707?vs=16107&id=16139

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

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

AFFECTED FILES
  mercurial/revset.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/revset.py b/mercurial/revset.py
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -1695,7 +1695,7 @@ 
     parent. (EXPERIMENTAL)
     """
     if x is None:
-        stacks = stackmod.getstack(repo, x)
+        stacks = stackmod.getstack(repo)
     else:
         stacks = smartset.baseset([])
         for revision in getset(repo, fullreposet(repo), x):