tortoiseHG突然失败,并显示“无法删除文件xxx权限被拒绝". [英] tortoiseHG suddenly fails with "Unable to remove file xxx permission denied"

查看:148
本文介绍了tortoiseHG突然失败,并显示“无法删除文件xxx权限被拒绝".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我大约有50个修改过的文件.我试图搁置它们.大约在一半时,tortoiseHG表示无法删除文件x/y/z/foo.java,权限被拒绝".我尝试了剩余的几个文件,它们似乎都存在相同的问题.

我在Windows机器上使用tortoiseHG已有很长时间了,没有任何问题.关于如何解决此问题的任何建议?文件未锁定(由另一个程序打开).它们都位于我可以访问的同一本地目录中.

解决方案

弄清楚了.该错误信息是令人误解的.问题是剩余的.hg/wlock文件.大概是从它最初失败时开始执行的,是原始书架的1/2.

删除.hg/wlock可解决此问题.

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.

解决方案

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.

这篇关于tortoiseHG突然失败,并显示“无法删除文件xxx权限被拒绝".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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