Saturday, November 27, 2010

Locked File Reports from your working copy

In my effort to find a easier way to get the locked file list, stumbled on the "svn status" command.
What you essentially need to do is run this command with a verbose (-v) and get changes from repository (-u) options. This is similar to the TortoiseSVN "Check for modifications" option.

The catch here is, it needs to be run from the folder on which you need the report. So I partially checked out the root folder and ran this command! Works perfectly!

In the output, the files which are marked "O" are the locked one's.

So your command should be looking some thing like this:

working_dir_path> svn status -u -v>locklist.txt