Thursday, February 7, 2013

Delete .lock files faster than SVN commands


A lock file used to generate in the .svn directory if any fatal error occurs during any SVN operations.  So there can be thousands of directories and sub directories inside that. The .lck file will be generated in all the .svn folder for all the directories and sub directories.

You can simply use SVN GUI (right click on the parent folder and clean) or command line (svn cleanup) arguments to clean up the lock file. But if your code is very large i.e if number of nested directories and sub directories is huge then most of the time the cleanup process becomes unresponsive.

In windows simply open the parent directory from command prompt and delete the lock files by giving this command:

del /s lock

Where del is to delete the lock file and /s to delete all the lock file in the sub directories.

No comments:

Post a Comment