How can I determine for a user svn the list of his locked files

929 Views Asked by At

What we need: in case of drop out a task or a development, the developer should unlock all files he is locking.

Is there a simple way to check for a specified USER the list of all files he is locking ?

We are running Subversion on a Linux server using svn version 1.8.11 (r1643975).

1

There are 1 best solutions below

1
On BEST ANSWER

Use svnadmin lslocks (requires local access to the whole repository, i.e. you have to be an administrator) and then grep the output. Here is an example (I guess that you can search the web for a more complex one liner which will provide better output, e.g. with coloring):

svnadmin lslocks PATH-TO-REPOSITORY | grep 'USERNAME' -B 2

Path: /trunk/lockedfile.docx
UUID Token: opaquelocktoken:a0ec5b2a-fb50-ec4e-bbd2-20eb61bae743
Owner: user
--
Path: /branches/devbranch/anotherlockedfile.bmp
UUID Token: opaquelocktoken:d3222e08-96a7-ec4d-89f2-11777027d526
Owner: user