Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有几个分支的(远程)Hg 存储库。我想验证分支 A 具有分支 B 具有的每个变更集(它可能有更多,这没关系)。
有没有简单的方法来做到这一点hg?
hg
我可以编写一个小 shell 脚本来完成它,但它似乎会经常出现,所以也许有一个简单的内置方法。
这将显示任何b不是变更集祖先的变更集祖先a:
b
a
hg log -r "ancestors(b) and not ancestors(a)"
如果您将分支 B 的负责人分配给 b,将分支 A 的负责人分配给 a,这应该会告诉您哪些更改仍需要从 B 合并到 A。