I am trying to find a way to remove zombie locks using the Subversion command line tools. The ultimate goal is to do this with a hook script, but I was not able to develop a command line to use when you only have the path to the physical repository. (Using svnadmin rmlocks seems to work only for locks that exist in the HEAD revision.)
Ideally, I would like to do this using the post-commit script command using command line tools. (I know a python script for this purpose, but we would prefer not to install python on this server for this single use.) We are a .NET store, so creating a tool using the SharpSVN library is also an option, but the only unlock option is apparently is in the class SVNClient.
So these are really two questions: is there a way to do this using command line tools? If not, is there a way to do this from SharpSVN? (Or maybe another library?)
== Update December 3, 2012 ==
I had to review this issue recently and found that this issue still causes traffic. The python script mentioned in the original question and the answer "Don" has since moved to: http://svn.apache.org/repos/asf/subversion/trunk/contrib/hook-scripts/remove-zombie-locks.py (I guess most people are looking for.)
Ironically, although the repository switched to Linux, we use solution C.
source
share