简体   繁体   English

Mercurial错误“文件名,目录名称或卷标语法不正确”

[英]Mercurial error “The filename, directory name, or volume label syntax is incorrect”

I'm getting the following error when I try to update my Mercurial directory on a PC: 当我尝试在PC上更新我的Mercurial目录时出现以下错误:

The filename, directory name, or volume label syntax is incorrect. 文件名,目录名或卷标语法不正确。

Other comments have noted that the problem lies with having ampersands or carets in the path. 其他评论指出,问题在于在路径中使用了&符号或插入符号。 However my path is this: 不过我的道路是这样的:

C:\Users\First Last\Desktop\goodmorningcmc

That doesn't have any ampersands. 那没有任何&符号。

Is it possible that the error is being caused by the space in my username? 错误是否可能是由我的用户名空间引起的? This is a really frustrating error. 这是一个非常令人沮丧的错误。

Thanks, Kevin 谢谢,凯文

I could be that a file has been added to the repository by someone else which has dodgy character in it. 我可能是一个文件已经由其他人中添加到存储库中,其中有一个狡猾的角色。 When running update Mercurial is trying to create the file on disk. 运行更新时,Mercurial正在尝试在磁盘上创建文件。 Try running hg serve and browsing to http://localhost:8000 - then look through the changeset history to see which files have been added/renamed. 尝试运行hg serve并浏览到http:// localhost:8000 - 然后查看变更集历史记录以查看已添加/重命名的文件。 That might give you a clue. 这可能会给你一个线索。

I solved the problem - it turns out there was a filename in the repo that contained a pipe character | 我的问题解决了-原来有在包含管道字符回购的文件名| . Renaming that file solved the problem. 重命名该文件解决了问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误:mkdir…文件名,目录名称或卷标签语法不正确 - Error: mkdir … The filename, directory name or volume label syntax is incorrect 如何修复错误“文件名、目录名或卷标语法不正确”? - How to fix error “The filename, directory name, or volume label syntax is incorrect”? 快捷方式中的目标:文件名、目录名或卷 label 语法不正确 - Target in shortcut: The filename, directory name, or volume label syntax is incorrect 文件名、目录名或卷标语法不正确。 (代码:123) - The filename, directory name, or volume label syntax is incorrect. (code: 123) 批处理中的文件名、目录名或卷标语法不正确 - The filename, directory name, or volume label syntax is incorrect inside batch CMD 中的“C:\”、文件名、目录名或卷 label 语法不正确 - 'C:\' in CMD, the filename, directory name, or volume label syntax is incorrect OSError: [WinError 123] 文件名、目录名或卷 label 语法不正确: - OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: Scrapy抓取错误:[错误123]文件名,目录名或卷标签语法不正确 - Scrapy crawl error: [Error 123]The filename, directory name, or volume label syntax is incorrect 从GUI应用程序使用CreateProcess运行.bat脚本会导致“文件名,目录名或卷标签语法不正确。”错误 - Running a .bat script with CreateProcess from a GUI app results in “The filename, directory name, or volume label syntax is incorrect.” error 在Windows 10 CMD中运行链接的命令时,文件名,目录名或卷标签语法不正确 - The filename, directory name, or volume label syntax is incorrect when running chained commands in Windows 10 CMD
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM