开发者

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:

  1. Merge-changesets
  2. on the default-branch
  3. A direct child of any changeset on the secondary branch
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜