1530 # i18n: "secret" is a keyword |
1531 # i18n: "secret" is a keyword |
1531 getargs(x, 0, 0, _("secret takes no arguments")) |
1532 getargs(x, 0, 0, _("secret takes no arguments")) |
1532 target = phases.secret |
1533 target = phases.secret |
1533 return _phase(repo, subset, target) |
1534 return _phase(repo, subset, target) |
1534 |
1535 |
|
1536 @predicate('stack([revs])', safe=True) |
|
1537 def _stack(repo, subset, x): |
|
1538 # experimental revset for the stack of changesets or working directory |
|
1539 # parent |
|
1540 if x is None: |
|
1541 stacks = stack.getstack(repo, x) |
|
1542 else: |
|
1543 stacks = smartset.baseset([]) |
|
1544 for revision in getset(repo, fullreposet(repo), x): |
|
1545 currentstack = stack.getstack(repo, revision) |
|
1546 stacks = stacks + currentstack |
|
1547 |
|
1548 # Force to use the order of the stacks instead of the subset one |
|
1549 return stacks & subset |
|
1550 |
1535 def parentspec(repo, subset, x, n, order): |
1551 def parentspec(repo, subset, x, n, order): |
1536 """``set^0`` |
1552 """``set^0`` |
1537 The set. |
1553 The set. |
1538 ``set^1`` (or ``set^``), ``set^2`` |
1554 ``set^1`` (or ``set^``), ``set^2`` |
1539 First or second parent, respectively, of all changesets in set. |
1555 First or second parent, respectively, of all changesets in set. |