[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Recursively finding locks based on a URL

From: Hyrum K. Wright <hyrum_wright_at_mail.utexas.edu>
Date: Thu, 16 Sep 2010 11:55:39 +0200

On Thu, Sep 16, 2010 at 11:07 AM, Phillip Gussow <pgussow_at_cordys.com> wrote:
> Hi group,
>
>
>
> I’m running into a situation where I need to know all locks that exist on a
> certain repository path.
>
> I know there is the svnadmin lslocks command. Which is in general what I
> need, but I need to do it on an URL, because I don’t have access to the
> server path.
>
>
>
> Back ground: we’re using a software package which utilizes the locks in SVN
> to prevent editing of unmergable content. But sometimes the product puts
> ‘illegal’ locks on some files without showing their end users.
>
> So what I would like is to ask SVN for a list of all paths that are locked.
>
> So something like this:
>
> svn lslocks https://server/svn/repository_name/project1/trunk
>
>
>
> Which produces something like this:
>
> user1     2010-09-16 10:00:00 /folder1/folder2/file.txt
>                                 The comment
>
> user3     2010-09-16 10:00:00 /folder1/folder2//folder3/something.jsp    The
> comment
>
> user1     2010-09-16 10:00:00 /folder1/morefile.xml
>                                 The comment
>
>
>
> Do I need to log a feature request for this? And if yes, how should I phrase
> this?
>
> Or is there some other way to achieve this? Keep in mind that I have to be
> able to run this on a URL from any client (of course using proper SVN
> credentials J )

Could you use something like the python bindings to open a connection
to the repository and fetch the locks yourself?

-Hyrum
Received on 2010-09-16 11:56:19 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.