TortoiseSVN write-lock error?

假装没事ソ 提交于 2019-12-01 16:41:08

Hmm... That is odd, but it's a problem in your working copy. I'd abort troubleshooting the svn switch by getting a fresh checkout the trunk. You should then be able to merge the branch into this new working copy.

I was switching from a branch to trunk and just got the same error.

With TortoiseSvn, I was able to do a "Clean Up" and that fixed the issue for me.

If you're using TortoiseSVN, what could be happening is that a (wayward) TSVNCache process is holding open .svn/wc.db which prevents a write lock on the file from being created during the switch operation. Killing the process (or at least forcing the handle closed) will release the handle on the file, allowing other operations that modify the working copy metadata to happen.

I had this problem in a recurrent fashion, always in the same project, at each and every commit. Chris' answer may work (i.e. restart TSVNCache process) but that's a one off.

What cleared off the problem definitively for me was to:

  • 1) go down to the file(s) that TSVN complained about, and do SVN Update on each of them, TSVN then issues a "merged file ..." message, because of the commit that succeeded, but the automated update that had failed.

  • 2) once all files were committed and my overall project directory stable, I deleted the to folder, and checked it out from scratch.

No more problems since. Touch wood.

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