Find the latest merge point of two branches

后端 未结 7 2004
旧时难觅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(<branch1>, <branch2>))"

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

    0 讨论(0)
提交回复
热议问题