Find the latest merge point of two branches

后端 未结 7 2140
旧时难觅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:54

    In recent versions of Mercurial (>1.7), you can do this with revsets:

    hg log -r "max(ancestor(, ))"

    The same revset filter also works in the Filter toolbar of TortoiseHg.

提交回复
热议问题