configuration - TortoiseHg无法提交--"The system cannot find the file specified"

标签 configuration mercurial tortoisehg mercurial-commit

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

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

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



在一个名为“提交”的新窗口中。这将导致提交中止。它没有指定任何文件,并且当我运行hg --traceback commit -m'Message'时,它将作为输出:
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

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

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

感谢您的帮助,请索取更多信息,在这种情况下我不知道该给些什么。

最佳答案

试试这个:

  • 删除TortoiseHG
  • 重新启动系统(基本上是为了确保没有乌龟发出的进程(例如文件监视)来锁定文件)
  • Intall命令行hg
  • 做常规的hg commit -m "yourmessage"

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

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

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

    关于configuration - TortoiseHg无法提交--"The system cannot find the file specified",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3172303/

    相关文章:

    mercurial - 让 mercurial "hg commit"与 Notepad++ 一起使用

    eclipse - 跨 Eclipse、Mercurial、Windows 和 Mac OS 的编码问题

    git - 使用 TortoiseHg 克隆一个可读写的 github 存储库

    mercurial - 使Mercurial在Windows中运行

    c# - .Net-Core 配置拉取连接字符串错误的提供者

    java - AspectJ 加载时间编织不适用于 Spring bean

    偏好 Activity 中的 Android 更新语言

    sharepoint - 使用 NLog 集中日志记录的最佳方法是什么?

    version-control - 使用 Mercurial 的按功能分支工作流

    Mercurial 推/拉详细输出