Find the latest merge point of two branches

后端 未结 7 2002
旧时难觅i
旧时难觅i 2021-02-01 05:16

Having two branches, how can I find the latest revision(s) where the two branches were merged? Is there a standard Mercurial command to do that?

This is the same as ques

7条回答
  •  别那么骄傲
    2021-02-01 05:44

    hg log -r "children(ancestor(default, Cleanup)) and merge()" --template "{rev}\n"
    

    is latest merge for default and Cleanup branches (polished version of Tim Henigan's answer).

提交回复
热议问题