【发布时间】:2011-10-08 06:07:35
【问题描述】:
Git 有 merge-base 命令,可以显示两个或多个分支的共同祖先。
Mercurial 和 bzr 的类比是什么?
【问题讨论】:
标签: git mercurial merge bazaar
Git 有 merge-base 命令,可以显示两个或多个分支的共同祖先。
Mercurial 和 bzr 的类比是什么?
【问题讨论】:
标签: git mercurial merge bazaar
对于 Mercurial:
hg debugancestor rev1 rev2
【讨论】:
使用revsets:
"ancestor(single, single)"
Greatest common ancestor of the two changesets.
$ hg log -r 'ancestor(rev1, rev2)'
【讨论】:
对于集市:
bzr find-merge-base /path/to/branch1 /path/to/branch2
(此命令隐藏在您可以使用bzr help commands 获得的主要命令集中。使用bzr help hidden-commands 查看其他隐藏命令)。
【讨论】: