mercurial/revset.py
changeset 42721 911e25dc9d8c
parent 42457 43c8f72184f4
child 43076 2372284d9457
equal deleted inserted replaced
42720:77c52ce50e6a 42721:911e25dc9d8c
  1693 def stack(repo, subset, x):
  1693 def stack(repo, subset, x):
  1694     """Experimental revset for the stack of changesets or working directory
  1694     """Experimental revset for the stack of changesets or working directory
  1695     parent. (EXPERIMENTAL)
  1695     parent. (EXPERIMENTAL)
  1696     """
  1696     """
  1697     if x is None:
  1697     if x is None:
  1698         stacks = stackmod.getstack(repo, x)
  1698         stacks = stackmod.getstack(repo)
  1699     else:
  1699     else:
  1700         stacks = smartset.baseset([])
  1700         stacks = smartset.baseset([])
  1701         for revision in getset(repo, fullreposet(repo), x):
  1701         for revision in getset(repo, fullreposet(repo), x):
  1702             currentstack = stackmod.getstack(repo, revision)
  1702             currentstack = stackmod.getstack(repo, revision)
  1703             stacks = stacks + currentstack
  1703             stacks = stacks + currentstack