changeset 42721:911e25dc9d8c

revset: drop argument when it's None getstack's definition is `getstack(repo, rev=None)`, so providing None explicitly is unnecessary. Moreover, when x is not None, it's definitely not a revision but a part of a parsed tree of revset arguments. Differential Revision: https://phab.mercurial-scm.org/D6707
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 18 Jul 2019 17:10:38 +0800
parents 77c52ce50e6a
children f9b64ff9d26b
files mercurial/revset.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revset.py	Thu Jul 18 17:07:34 2019 +0800
+++ b/mercurial/revset.py	Thu Jul 18 17:10:38 2019 +0800
@@ -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):