Working copy XXX locked and cleanup failed in SVN

I get this error when I do an svn update :

Working copy XXXXXXXX locked Please execute "Cleanup" command

When I run cleanup, I get

Cleanup failed to process the following paths: XXXXXXXX

How do I get out of this loop?


One approach would be to:

  • Copy edited items to another location.
  • Delete the folder containing the problem path.
  • Update the containing folder through Subversion.
  • Copy your files back or merge changes as needed.
  • Commit
  • Another option would be to delete the top level folder and check out again. Hopefully it doesn't come to that though.


    对我来说,诀窍是在我的工作副本的顶部运行svn cleanup ,而不是在问题发生前我一直在工作的文件夹中。


    Look in your .svn folder, there will be a file in it called lock . Delete that file and you will be able to update. There may be more lock files in the .svn directory of each subdirectory. They will need deleting also. This could be done as a batch quite simply from the command line with eg

    find . -name 'lock' -exec rm -v {} ;
    

    Note that you are manually editing files in the .svn folder. They have been put there for a reason. That reason might be a mistake, but if not you could be damaging your local copy.

    SOURCE : http://www.svnforum.org/2017/viewtopic.php?p=6068

    链接地址: http://www.djcxy.com/p/45718.html

    上一篇: 我应该使用SVN还是Git?

    下一篇: SVN中的工作副本XXX锁定和清理失败