TortoiseHg无法提交-“系统找不到指定的文件". [英] TortoiseHg can't commit--"The system cannot find the file specified"

查看:108
本文介绍了TortoiseHg无法提交-“系统找不到指定的文件".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚拿起TortoiseHg用于Windows上的分布式源代码控制,并将其安装在我的C驱动器上.然后,我创建了一个存储库(位于D:\ projects中).

I just picked up TortoiseHg to use for distributed source control on Windows and installed it on my C drive. Then I created a repository (located in D:\projects).

当我尝试提交更改时,它给了我错误

When I try to commit the changes, it gives me the error

中止:无:系统找不到 指定的文件"

"abort: None: The system cannot find the file specified"

在一个名为"Commit"的新窗口中.这将导致提交中止.它没有指定任何文件,而当我运行hg --traceback commit -m'Message'时,它将作为输出:

in a new window titled "Commit". This causes the commit to abort. It doesn't specify any file, and when I run hg --traceback commit -m 'Message' it gives this as output:

Traceback (most recent call last):
  File "mercurial\dispatch.pyo", line 54, in _runcatch
  File "mercurial\dispatch.pyo", line 483, in _dispatch
  File "mercurial\dispatch.pyo", line 351, in runcommand
  File "mercurial\dispatch.pyo", line 534, in _runcommand
  File "mercurial\dispatch.pyo", line 488, in checkargs
  File "mercurial\dispatch.pyo", line 481, in <lambda>
  File "mercurial\util.pyo", line 420, in check
  File "mercurial\commands.pyo", line 762, in commit
  File "mercurial\cmdutil.pyo", line 1202, in commit
  File "mercurial\commands.pyo", line 757, in commitfunc
  File "mercurial\localrepo.pyo", line 816, in commit
  File "mercurial\localrepo.pyo", line 1053, in status
  File "mercurial\dirstate.pyo", line 629, in status
  File "mercurial\dirstate.pyo", line 540, in walk
  File "mercurial\localrepo.pyo", line 796, in fail
Abort: Adding: The system cannot find the file specified
abort: Adding: The system cannot find the file specified

我不知道我还能提供什么作为调试信息,对程序没有任何经验.

I don't know what else I can give as debug info, not having any experience with the program.

我已经用全局用户名和存储库配置了TortoiseHg.同样,将kdiff3指定为三向合并工具和可视化diff工具.我没有故意更改任何其他设置.

I have configured TortoiseHg with both a username globally and for the repository. Also, kdiff3 is specified as both the three-way merge tool and the visual diff tool. I have not knowingly changed any other settings.

感谢您的帮助,请索取更多信息,我只是不知道在这种情况下应该提供些什么.

Thanks for any help, and please ask for more information, I just don't know what to give in this situation.

推荐答案

尝试一下:

  1. 删除TortoiseHG
  2. 重新启动系统(基本上是为了确保没有乌龟的过程,例如文件监视,可以对文件进行锁定)
  3. 内置命令行hg
  4. 执行常规的hg commit -m "yourmessage"
  1. Remove TortoiseHG
  2. Restart the system (basically to make sure there are no processes from tortoise, such as file monitoring, that can put locks on files)
  3. Intall command line hg
  4. do the regular hg commit -m "yourmessage"

如果这行得通,那么来自TortoiseHg的监视工具很可能会锁定某些文件(系统托盘小程序).

If this works, it's more likely than not that the monitoring tool from TortoiseHg is holding a lock on some file (the system tray applet).

也可能是其他人正在做的事情(不是TortoiseHg),例如编辑?差异工具?等等?

It also could be the case that someone else is doing than (not TortoiseHg), e.g. editor? diff tool? etc?

最后,发生这种情况的另一个原因是:某人愚弄了.hg目录中的repo文件……虽然似乎并非如此

Finally, another reason why this can happen is: someone fooled around with the repo files inside .hg directory... It doesn't seem to be the case though

这篇关于TortoiseHg无法提交-“系统找不到指定的文件".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆