【发布时间】:2010-07-29 14:14:59
【问题描述】:
当我尝试hg rebase -s 1775 --collapse 时,我被要求合并自 rev 1774 以来我接触过的所有文件。我该如何避免这种情况?
详情
我只是在学习如何变基。我成功地尝试了给定here 的示例,以及一些小的变化。但是,在我自己的存储库中,当我尝试相同的步骤时,我被要求在 rebase 时合并大量文件。这就是我所做的。我做错了什么?
hg update -r 1774
hg tag "Started-New-Feature"
hg rebase -s 1775 --collapse
我想可能是因为我已经更新到-r1774,所以我在标记-r1774后更新了小费。结果相同。
hg update -r 1774
hg tag "Started-New-Feature"
hg update
hg rebase -s 1775 --collapse
hg tag 创建一个新的 rev -r1784。所以我尝试专门更新到-r1783。结果一样。
hg update -r 1774
hg tag "Started-New-Feature"
hg update -r 1774
hg update -r 1783
hg rebase -s 1775 --collapse
我在网上搜索了相关问题,但没有找到任何东西,这并不意味着不存在答案。欢迎指出现有答案。
编辑:
这似乎与 1.4 中修复的 to a reported mercurial bug 相关。我有 1.1 版。我尝试更新到 1.4 或更高版本,但 sudo apt-get install mercurial 说我有最新版本,并且下载链接 on the mercurial page 目前已损坏。所以也许答案只是获取最新版本,但希望有另一种解决方法。
【问题讨论】: