Is there a way to determine if there was an indirect merger of changes with the branch with another?

Say we have three named branches A, B, and C. Is there a (non-primary) way to detect that changes from C turned it into A?

A ---------------------------- | \ / B | \------------/ | / C \---------/ ------- 
+6
mercurial
source share
1 answer

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 branch C. You can use templates to extract exactly the necessary information from the log entries.

See hg help revsets .

+8
source share

All Articles