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

RE: svn lock command with multiple files/paths

From: Michael Weaver <MWeaver_at_viewpointusa.com>
Date: Tue, 12 Feb 2008 20:57:57 -0500

The subversion book states:
Additionally, the list of paths locked is passed to the hook program via
standard input, one path per line.

I am guessing the hook templates probably haven't been updated in a
while....

Right now I am currently testing on the same PC, client and server on
one machine. Has anyone else successfully passed in all paths to stdin?
I am going to test on two different machines in a min. Also prior to
>1.2 how has one written a hook script to account for multiple locks, is
their a way to tell when all the locks have been performed when doing
individually? I could create a text file as all locks come in and then
when I get the last one send out an email? Is there an easy way to tell
when the last lock is performed?

Thanks,

-----Original Message-----
From: Reedick, Andrew [mailto:jr9445_at_ATT.COM]
Sent: Tuesday, February 12, 2008 4:11 PM
To: Ryan Schmidt; Michael Weaver
Cc: users_at_subversion.tigris.org
Subject: RE: svn lock command with multiple files/paths

> -----Original Message-----
> From: Ryan Schmidt [mailto:subversion-2008a_at_ryandesign.com]
> Sent: Tuesday, February 12, 2008 2:51 PM
> To: Reedick, Andrew
> Cc: Michael Weaver; users_at_subversion.tigris.org
> Subject: Re: svn lock command with multiple files/paths
>
> On Feb 12, 2008, at 11:15, Reedick, Andrew wrote:
>
> >
> >
> > Print the transaction id in each email (to see if svn really is
> > breaking locks up into three individual transactions.)
> > Try running "svn lock -targets file.txt" to see if that will force
> > it into one transaction.
> > Post your hook code to see if you're making a dumb mistake
somewhere.
>
> But locks do not occur in transactions... No transaction (or
> revision) is created when you lock or unlock...
>

Doh! Good point. An even better point can be found in the
post-lock.tmpl script (svn 1.4.5):

# The paths that were just locked are passed to the hook via STDIN (as
# of Subversion 1.2, only one path is passed per invocation, but the
# plan is to pass all locked paths at once, so the hook program
# should be written accordingly).

So only one path is being passed in via STDIN at a time?

*****

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential, proprietary, and/or
privileged material. Any review, retransmission, dissemination or other
use of, or taking of any action in reliance upon this information by
persons or entities other than the intended recipient is prohibited. If
you received this in error, please contact the sender and delete the
material from all computers. GA621

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-13 03:03:41 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.