I am having a problem with version control in Subversion. I checked out a working copy from respository and got locks on all of its files. Then, without releasing the locks I ha
Ok I got it. Here's what worked for me.
Unless you have admin access to the svn machine and can use the 'svnadmin' tool, your best option seems to be this:
svn checkout --ignore-externals *your_repo*
svn status --show-updates
on the checked out repository to find out which files are potentially locked (if someone finds the documentation on the meaning of the status codes please comment).svn unlock --force *some_file*
on the files found at 2.I've used the following one-liner to automate 2. and 3.:
svn status -u | head -n -1 | awk '{ print $3 }' | xargs svn unlock --force
If you have access to the svnadmin tool in the repo server, you can use this alternative to remove all locks (based on the script posted by VonC)
svnadmin lslocks <path_to_repo> |grep -B2 Owner |grep Path |sed "s/Path: \///" | xargs svnadmin rmlocks <path_to_repo>