Vishal Gangwal wrote on Wed, 7 Jan 2009 at 21:37 -0700:
> Is there any other way apart from post-lock hook script which will give
> file path which is just locked at that moment in that transaction ?
"Transaction" already has a meaning in Subversion, which isn't about
locking --- but I think that's not the meaning you referred to.
> And what exactly the post-lock hook template means by this - " The paths
> that were just locked are passed to the hook via STDIN " ?
STDIN is the standard input (aka, file descriptor 0). The hook can read that
(using, e.g., getchar() in a C program, to give an inefficient-but-working
example) to find the path(s) that were just locked.
You might want to check some example post-lock hooks to see how people
obtain the filenames. (No concrete example, sorry.)
> Thanks & Regards
> -----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.
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-08 14:17:26 CET