equal
deleted
inserted
replaced
1526 ps -= set([node.nullrev]) |
1526 ps -= set([node.nullrev]) |
1527 # XXX we should turn this into a baseset instead of a set, smartset may do |
1527 # XXX we should turn this into a baseset instead of a set, smartset may do |
1528 # some optimisations from the fact this is a baseset. |
1528 # some optimisations from the fact this is a baseset. |
1529 return subset & ps |
1529 return subset & ps |
1530 |
1530 |
|
1531 def parentpost(repo, subset, x): |
|
1532 return p1(repo, subset, x) |
|
1533 |
1531 @predicate('parents([set])', safe=True) |
1534 @predicate('parents([set])', safe=True) |
1532 def parents(repo, subset, x): |
1535 def parents(repo, subset, x): |
1533 """ |
1536 """ |
1534 The set of all parents for all changesets in set, or the working directory. |
1537 The set of all parents for all changesets in set, or the working directory. |
1535 """ |
1538 """ |
2305 "list": listset, |
2308 "list": listset, |
2306 "keyvalue": keyvaluepair, |
2309 "keyvalue": keyvaluepair, |
2307 "func": func, |
2310 "func": func, |
2308 "ancestor": ancestorspec, |
2311 "ancestor": ancestorspec, |
2309 "parent": parentspec, |
2312 "parent": parentspec, |
2310 "parentpost": p1, |
2313 "parentpost": parentpost, |
2311 } |
2314 } |
2312 |
2315 |
2313 # Constants for ordering requirement, used in _analyze(): |
2316 # Constants for ordering requirement, used in _analyze(): |
2314 # |
2317 # |
2315 # If 'define', any nested functions and operations can change the ordering of |
2318 # If 'define', any nested functions and operations can change the ordering of |