revset: add stub to handle parentpost operation
All operations will take 'order' flag, but p1() function won't.
--- 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():