TortoiseHg更新失败并显示“访问被拒绝",如何解决? [英] TortoiseHg update fails with "Access is denied", how to work around that?
问题描述
我已经从远程存储库中对只读文件进行了一些更改,并且尝试更新我的工作区域,但是当TortoiseHg尝试更新只读文件时,出现了[Errno 13] ... Access is denied
错误.
I've pulled in some changes to read-only files from a remote repository and I'm trying to update my working area, but I get [Errno 13] ... Access is denied
errors when TortoiseHg tries to update the read-only files.
我想知道在TortoiseHg GUI中是否有命令,选项或设置可以解决此问题.我似乎也无法从命令行更新只读文件,因此我也对命令行解决方案感兴趣.
I'm wondering if there's a command, option, or setting that will solve this problem in the TortoiseHg GUI. I can't seem to updated read-only files from the command line, either, so I'm also interested command-line solutions as well.
推荐答案
在Windows上,存储库根目录中的attrib -r * /s
将从文件中删除所有只读属性.
On Windows, attrib -r * /s
from the repository root will remove all read-only attributes from files.
这篇关于TortoiseHg更新失败并显示“访问被拒绝",如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!