Monday, 14 May 2012

Overcome Problem of SVN Working Copy xxx locked and cleanup failed

Sometime You will get error in svn update or commit like
svn: Working copy '/home/test/IdeaMed/Project/src/main' locked; try performing 'cleanup'.


For that just go Team--->cleanup then that error will go away

Sometime You will get error like that also
svn: Working copy '/home/test/IdeaMed/Project/src/main' locked; and cleanup failed .


We should also be careful not to interrupt SVN operations, though sometimes a error may occur and this  could cause the ".lock" file to not be removed.

Generally  ".lock" file is created and it decides lock/unlock state checking the existince of this file. If you delete this ".lock" file only, then the problem will go away.

".lock" normally Placed in WorkSpace folder.Go to WorkSpace folder and press Ctrl+h  then you will find ".metaData".Inside of  ".metaData" delete the ".lock" file 


Otherwise in command window simply give the following command it will work
          "svn cleanup"

No comments:

Post a Comment