开发者

Mercurial Log of Merges Between Named Branches

开发者 https://www.devze.com 2023-03-16 03:20 出处:网络
I\'ve got a PowerShell script that finds revisions that merged two named branches together.It loopsthrough all the merges on a particular branch, showing changesets that have a parent on the other nam

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

精彩评论

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