Wednesday, 9 July 2014

how to clean up svn when crashed

There are times when we see the blow error in your svn or cygwin tool

svn: Working copy ‘/myrepo/repodirectory’ locked
svn: run ’svn cleanup’ to remove locks (type ’svn help cleanup’ for details)

if you run  svn status at this stage you will see all the files & folders will have a  "L" , meaning,  it is locked.

The easiest way to resolve this issue is to provide the below command in the command prompt
(assuming that the command is executed from the root of the workspace
svn cleanup .      

The above command will basically unlock all the folders/subfolder and files recursively.

No comments: