Find the latest merge point of two branches

后端 未结 7 2022
旧时难觅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条回答
  •  旧时难觅i
    2021-02-01 05:47

    Just for the posterity this is not right in the case the left branch has not been merged with the right branch, but the left branch has lately been merged into right.

    The correct solution is:

    last(parents((ancestors('{left_branch}') and branch('{left_branch}') and merge())) and branch({right_branch}))
    

提交回复
热议问题