TortoiseHg update fails with “Access is denied”, how to work around that?

好久不见. 提交于 2019-12-08 13:46:09

问题


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.

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.


回答1:


On Windows, attrib -r * /s from the repository root will remove all read-only attributes from files.




回答2:


reconsider the requirement that they need to be readonly. maybe a piece of the deployment script that makes them readonly on deploy instead of having them readonly in your working directory would be a better answer.




回答3:


I sometimes read about the makewritable extension, perhaps this may help you in any way ... unless it's still in alpha state?



来源:https://stackoverflow.com/questions/2481754/tortoisehg-update-fails-with-access-is-denied-how-to-work-around-that

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!