svn is already locked解决办法

遇到svn is already locked时如何解决!

SVN提示:“xxx” is already locked!
run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)
然而在svn cleanup时,又会提示:Can't create directory '/home/Android/.svn/tmp': File exists 导致无法操作;
这时候,可执行如下命令恢复:
进入.svn目录(该目录为隐藏目录)
@server:~/android$ cd .svn
@server:~/android/.svn $ mkdir aa
@server:~/android/.svn $ mv aa tmp
@server:~/android/.svn $ rm -rf tmp
@server:~/android/.svn $ cd ..
此时可cleanup:
@server:~/android $ svn cleanup
于是再update,便没有问题了
@server:~/android$ svn update

你可能感兴趣的:(svn is already locked解决办法)