Mercurial Log of Merges Between Named Branches
I've got a PowerShell script that finds revisions that merged two named branches together. It loops through all the merges on a particular branch, showing changesets that have a parent on the other named branch.
Is there an hg log
command th开发者_如何学Pythonat will do the equivalent? I've played around with Mercurial's revsets feature (hg help revsets
), but can't seem to find the magical incantation.
You can use this:
hg log --rev "merge() and branch(default) and children(branch(secondary))"
This will output all changesets that are:
- Merge-changesets
- on the default-branch
- A direct child of any changeset on the secondary branch
精彩评论