How to compare sets of changesets between 2 Mercurial branches?

前端 未结 1 1447
忘掉有多难
忘掉有多难 2020-12-30 04:20

I\'ve got a (remote) Hg repository with a couple branches. I want to verify that branch A has every changeset that branch B has (it may have more, and that\'s OK).

相关标签:
1条回答
  • 2020-12-30 04:42

    This will show any ancestors of changeset b which are not an ancestor of changeset a:

    hg log -r "ancestors(b) and not ancestors(a)"
    

    This should show you which changes still need to be merged from B to A if you give the head of branch B for b, and the head of branch A for a.

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