I would like to find all changesets that are a merge from branchX to default.
So first parent of such changeset is on default and second parent of such changeset is on branchX.
Using hg log -r 'branch("default") & merge() we have all the merged changeset on default, regardless whether the second parent is branchX or not.
How can I modify the above revset to filter out merged changesets where the 2nd parent is on branchX only?
This does it in my tests:
Explained:
p2(branch(default)) & branch(branchX)gets the changesets onbranchXthat are the second parent of a changeset on thedefaultbranch.children()gets the children of those changesets& merge()limits those children to those which are merge changesets. Without this condition you also get the child that is continuingbranchXEdit this does it better I think:
The first version would include changes on
branchXthat were merges from other branches just after a merge frombranchXtodefault.