tortoiseHG suddenly fails with “Unable to remove file xxx permission denied”

一个人想着一个人 提交于 2019-12-14 01:32:25

问题


I have about 50 modified files. I tried to shelve them. About halfway through, tortoiseHG says 'Unable to remove file x/y/z/foo.java, permission denied'. I tried several of the remaining files, and they all seem to have the same issue.

I've been using tortoiseHG for a long time on this Windows machine without issues. Any suggestions on how to troubleshoot this? The files are not locked (open by another program). And they're all in the same local directory that I have access to.


回答1:


Figured it out. The error message is misleading. The problem was a leftover .hg/wlock file. Probably from when it initially failed doing 1/2 of the original shelving.

Deleting .hg/wlock solved the problem.



来源:https://stackoverflow.com/questions/18536614/tortoisehg-suddenly-fails-with-unable-to-remove-file-xxx-permission-denied

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