Removing zombie locks in Subversion

Posted by ThatBlairGuy on Stack Overflow See other posts from Stack Overflow or by ThatBlairGuy
Published on 2010-02-26T18:15:40Z Indexed on 2010/04/05 14:43 UTC
Read the original article Hit count: 303

Filed under:
|

I'm trying to find a way to remove zombie locks using the Subversion command line tools. The eventual goal is to do this from a hook script, but I haven't been able to work out the command line to use when you only have a physical repository path. (Using svnadmin rmlocks only seems to work for locks which exist in the HEAD revision.)

Ideally, I'd like to do this via the post-commit hook script using the command line tools. (I'm aware of the python script for this purpose, but we'd prefer not to install python on that server for this single use.) We're a .NET shop, so creating a tool with the SharpSVN library is also a possibility, but the only unlock capability there appears to be in the SVNClient class.

So it's really two questions: Is there a way to do this with the command line tools? If not, is there a way to do it from SharpSVN? (Or perhaps another library?)

© Stack Overflow or respective owner

Related posts about svn

Related posts about sharpsvn