Mercurial 您如何解决此错误;“中止未提交的更改”;当试图;hg merge“;,什么时候没有变化?

Mercurial 您如何解决此错误;“中止未提交的更改”;当试图;hg merge“;,什么时候没有变化?,mercurial,Mercurial,我对我的mercurial项目进行了一次新的检查,并更新了提示。我试图与另一个分支合并,但出现错误中止未提交的更改 > hg up 0 files updated, 0 files merged, 0 files removed, 0 files unresolved updated to "f9e1acf1f459: <commit message>" 1 other heads for branch "<branch>" > hg merge abort

我对我的mercurial项目进行了一次新的检查,并更新了提示。我试图与另一个分支合并,但出现错误
中止未提交的更改

> hg up
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
updated to "f9e1acf1f459: <commit message>"
1 other heads for branch "<branch>"

> hg merge
abort: uncommitted changes
(use 'hg status' to list changes)

> hg status



> hg status -i



> hg status -u



> hg summary
parent: 7008:f9e1acf1f459 tip
 <message for last commit>
branch: <branch>
commit: (clean)
update: 26 new changesets, 2 branch heads (merge)

>hg version
Mercurial Distributed SCM (version 4.9.1)
(see https://mercurial-scm.org for more information)

Copyright (C) 2005-2019 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>hg up
0个文件已更新,0个文件已合并,0个文件已删除,0个文件未解析
更新为“f9e1acf1f459:
1分公司的其他负责人“
>汞合并
中止:未提交的更改
(使用“hg状态”列出更改)
>汞状态
>汞状态-i
>汞状态-u
>汞概要
父项:7008:f9e1acf1f459提示
分支机构:
承诺:(清洁)
更新:26个新变更集,2个分支头(合并)
>hg版本
Mercurial分布式SCM(版本4.9.1)
(见https://mercurial-scm.org (如需了解更多信息)
版权所有(C)2005-2019 Matt Mackall及其他
这是自由软件;有关复制条件,请参见源。没有
担保甚至不是为了适销性或适合某一特定目的。
我尝试过使用mercurial(4.7.1)的旧版本,得到了相同的结果

如何解决此问题?

我也遇到了同样的问题-(版本5.7)。在搜索和尝试了很多东西之后,我找到了一个解决方法:

delete everything except .hg directory
hg update --clean branch-name

我仍然不知道为什么
hg status
没有显示任何更改,而
hg merge
由于有更改而中止,我的电脑上似乎有些东西损坏了,因为即使在安装了较旧版本的mercurial之后,我在其他存储库上也遇到了同样的问题。有人对造成这种情况的原因有什么想法吗?我在Windows 10上。你在使用什么Mercurial扩展?没有扩展,只是新安装的OrtoisehG。我做了一些测试,发现出于某种原因,mercurial在我的SSD驱动器上无法正常工作。但是把这个存储库移到我的硬盘上也不能解决这个问题。但是如果你在硬盘上初始化Mercurial repo,提交就可以了?