# HG changeset patch # User Yuya Nishihara # Date 1470559732 -32400 # Node ID d2d1be3009cac61e55c07320144a0e7e03171b36 # Parent 90455e7bf543cd3a5328139127f9535cd873a67c revset: add stub to handle parentpost operation All operations will take 'order' flag, but p1() function won't. diff -r 90455e7bf543 -r d2d1be3009ca mercurial/revset.py --- 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():