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

RE: How to get File Path in post-lock

From: Vishal Gangwal <vishalgangwal_at_waterford.org>
Date: Fri, 23 Jan 2009 04:39:50 -0700

Hi

We have found out the solution we needed to get the file path which is
locked in post-lock hook script.
In our case , The post-lock hook script calls a python script which uses
sys.stdin.readlines() to read STDIN .

The STDIN contains the path of the file which is locked as per svn
post-lock hook template , which says - " The
paths that were just locked are passed to the hook via STDIN " ?

So we are capturing STDIN via python to get file path which is locked.

Thanks & Regards
Vishal Gangwal

-----Original Message-----
From: Daniel Shahaf [mailto:d.s_at_daniel.shahaf.name]
Sent: Wednesday, January 07, 2009 8:02 PM
To: Andy Levy
Cc: Vishal Gangwal; users_at_subversion.tigris.org
Subject: Re: How to get File Path in post-lock

Andy Levy wrote on Wed, 7 Jan 2009 at 08:58 -0500:
> On Wed, Jan 7, 2009 at 00:42, Vishal Gangwal
> <vishalgangwal_at_waterford.org> wrote:
> > Hi
> >
> > In post-lock hook script of subversion we get repos-path and user as

> > arguments .
> > Can we get the file path which is locked in post-lock hook script ?
If yes
> > how to get it ?
>

See hooks/post-lock.tmpl.

> svnadmin lslocks $REPOS_PATH | grep $USER will get you all files that
> are locked by that user.
>
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1044718

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-23 16:59:30 CET

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.