Mercurial > hg
changeset 29931:d2d1be3009ca
revset: add stub to handle parentpost operation
All operations will take 'order' flag, but p1() function won't.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 07 Aug 2016 17:48:52 +0900 |
parents | 90455e7bf543 |
children | 09a84e747c88 |
files | mercurial/revset.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revset.py Tue Feb 16 22:02:16 2016 +0900 +++ b/mercurial/revset.py Sun Aug 07 17:48:52 2016 +0900 @@ -1528,6 +1528,9 @@ # some optimisations from the fact this is a baseset. return subset & ps +def parentpost(repo, subset, x): + return p1(repo, subset, x) + @predicate('parents([set])', safe=True) def parents(repo, subset, x): """ @@ -2307,7 +2310,7 @@ "func": func, "ancestor": ancestorspec, "parent": parentspec, - "parentpost": p1, + "parentpost": parentpost, } # Constants for ordering requirement, used in _analyze():