mercurial/revset.py
changeset 29931 d2d1be3009ca
parent 29930 90455e7bf543
child 29932 09a84e747c88
--- 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():