Mercurial,无法在 Windows 7 上克隆,“中止:找不到可用的临时文件名”
我正在尝试克隆一个存储库,但在 Windows 7 上失败了。如下所示:
C:\nodropwork>hg clone repoalias examplerepo
requesting all changes
adding changesets
adding manifests
adding file changes
added 1244 changesets with 9087 changes to 4816 files (+2 heads)
updating to branch default
abort: No usable temporary filename found
C:\nodropwork>cd examplerepo
C:\nodropwork\examplerepo>hg up
abort: No usable temporary filename found
文件系统包含源代码的前几个目录(前 3 个目录,总共大约 10 个目录)。
当我在 WinXP 上尝试此操作时,克隆可以工作,尽管我在特定文件上收到错误消息:
updating to branch default
[partial xml console output removed]
abort: The system cannot find the file specified:
C:\nodropwork\examplerepo\collateral/con.xml
当拥有该存储库的人在他的 Ubuntu 系统上进行测试克隆时,它工作正常,根本没有错误或警告。
谷歌搜索“找不到可用的临时文件名”,我看到 Mercurial 源代码具有 rename() 和 unlink() 等函数,特别是在 windows.py 中。但不知道如何处理这些信息。
我猜测存储库中有些东西 WinXP 可以容忍,但 Win 7 却会窒息。我们尝试从存储库中删除 con.xml,但这并没有解决。即将放弃并使用WinXP。
有人见过这个吗?知道解决办法吗?故障排除的聪明主意?
I'm trying to clone a repo and it's failing on Windows 7. Looks like this:
C:\nodropwork>hg clone repoalias examplerepo
requesting all changes
adding changesets
adding manifests
adding file changes
added 1244 changesets with 9087 changes to 4816 files (+2 heads)
updating to branch default
abort: No usable temporary filename found
C:\nodropwork>cd examplerepo
C:\nodropwork\examplerepo>hg up
abort: No usable temporary filename found
The filesystem then contains the first few directories of source (the first 3, out of about 10 total).
When I try this on WinXP, the clone works, although I get an error message on a particular file:
updating to branch default
[partial xml console output removed]
abort: The system cannot find the file specified:
C:\nodropwork\examplerepo\collateral/con.xml
When the guy who owns the repo does a test clone on his Ubuntu system, it works fine with no errors or warnings at all.
Googling on "No usable temporary filename found" I see Mercurial source with functions like rename() and unlink(), notably in windows.py. Not sure what to do with this info though.
I'm guessing that there is something in the repo that WinXP tolerate but Win 7 chokes on. We tried removing con.xml from the repo and this didn't fix. About to give up and use WinXP.
Has anyone seen this before? Know a fix? Clever idea for troubleshooting?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这已解决,问题是存储库中的“con.xml”文件(显然它仍然隐藏在某个地方,即使我们认为我们已删除)。
你不能将文件命名为“con”——Windows 上的任何名称,“con”是禁止的名称。
我们现在在 Win 7 上正确重命名了 con.xml 文件和存储库克隆和更新。
This is resolved, the problem was the "con.xml" file in the repo (apparently it was still hiding somewhere even though we thought we removed).
You can't name a file "con"-anything on Windows, "con" is a forbidden name.
We renamed the con.xml file and the repo clones and updates correctly on Win 7 now.