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

RE: Re: Enforcing the lock of a file prior to its commit.

From: Reedick, Andrew <Andrew.Reedick_at_BellSouth.com>
Date: 2006-07-20 16:13:28 CEST

> -----Original Message-----
> From: Luca Cappa [mailto:luca.cappa@sequoia.it]
>
>
> No, cause if you try it, you could commit a file with that
> property set
> even though you havent locked it. The trick is to just remove the
> read-only flag on that file, modify it and then commit it.
> Try it and you
> will see
> that locks as they are appear to be totaly useless.
>
>
> i need that feature as i said (i would like to commit only if
> the file was
> prior locked by the commiter).
>

Pretty sure you need to write a pre-commit hook. Use 'svn info' to get
the lock information (if any) on the file and compare the lock owner
against 'svnlook author -t'.

*****

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. 117

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 20 16:16:11 2006

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.