开发者

Is there a way to detect if changes from a branch has been indirectly merged with another?

开发者 https://www.devze.com 2023-01-31 09:47 出处:网络
Let\'s say we have three named branches A, B and C. Is there a (non ocular) way to detect that changes from C has made it 开发者_运维百科into A?

Let's say we have three named branches A, B and C. Is there a (non ocular) way to detect that changes from C has made it 开发者_运维百科into A?

A ----------------------------
  | \              /
B |  \------------/
  |           /
C  \---------/ -------  


Starting with Mercurial 1.6.0, you can use revsets to find this:

hg log -r "ancestors(A) and branch(C)"

This shows all the ancestors of A that are on the C branch. You can use templating to extract exactly the information you need from the log entries.

See hg help revsets for full details.

0

精彩评论

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

关注公众号