如何在没有合并的情况下改变mercurial?

时间:2010-07-29 14:14:59

标签: mercurial merge rebase

当我尝试hg rebase -s 1775 --collapse时,我被要求合并自1774年以来我触及的所有文件。我怎样才能避免这种情况?

详情

我正在学习如何改变。我成功地尝试了here给出的示例,以及一些小的变化。但是,在我自己的存储库中,当我尝试相同的步骤时,我被要求在我变换时合并一组文件。这就是我的工作。我做错了什么?

 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

我在网上搜索了SO以及相关的问题并没有找到任何内容,这并不意味着答案不存在。欢迎指出现有答案。

修改

这似乎与1.4中修复的to a reported mercurial bug相关。我有1.1版。我尝试更新到1.4或更高版本,但sudo apt-get install mercurial说我有最新版本,下载链接on the mercurial page目前已损坏。所以也许答案只是获得最新版本,但希望还有另一种解决方法。

1 个答案:

答案 0 :(得分:0)

您使用的是ubuntu吗?如果是这样,你可以使用hg的launchpad ppa版本,这往往是非常流行的https://launchpad.net/~mercurial-ppa/+archive/releases