Re: svn unlock all files locked by a specific user

Branko Čibej <[email protected]> Wed, 19 Mar 2025 19:36:13 +0100
Newsgroups gmane.comp.version-control.subversion.user
Organization The Apache Software Foundation
Message-ID <[email protected]>
On 19. 3. 25 19:10, Sean McBride wrote:
> Hi all,
>
> Is there an easy way to force unlock all files currently locked by a specific user?
>
> Consider an employee that leaves, and needing to then unlock anything she still had locked.

You'll have to script it. You can use 'svn ls -R -v URL' to get the 
contents of the repository, and call 'svn unlock --force' for every 
locked file. Even better, user 'svn ls -R --xml --incremental' and send 
the output through an XML parser filter to extract the URLs of the 
locked files.

-- Brane