Mercurial,无法在Windows 7上克隆,“中止:找不到可用的临时文件名". [英] Mercurial, can't clone on Windows 7, "abort: No usable temporary filename found"

查看:76
本文介绍了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

然后,文件系统包含源文件的前几个目录(前三个目录,总共约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.

以前有人看过吗?知道解决办法吗?排除故障的好主意?

解决方案

此问题已解决,问题出在存储库中的"con.xml"文件中(即使我们认为已将其删除,显然它仍藏在某处). /p>

您不能将文件"con"命名为Windows上的任何名称,"con"是禁止使用的名称.

我们现在已在Win 7上重命名了con.xml文件并重新克隆了仓库并进行了更新.

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?

解决方案

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.

这篇关于Mercurial,无法在Windows 7上克隆,“中止:找不到可用的临时文件名".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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