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

how to write pre-lock hook to enforce the use of --force

From: Giulio Troccoli <Giulio.Troccoli_at_uk.linedata.com>
Date: Tue, 1 Jul 2008 12:24:22 +0100

I have this problem I can't get my head around.

I need to enforce the locking of few files. I have set the
svn:needs-lock property and I do check whether these files are locked in
the pre-commit hook.

My problem is that I would like developers to steal the lock ONLY if
they use the --force option. In this case I would also like to send an
email to the previous lock owner to say that the lock has been stolen.

I can't seem to find how to check whether the --force option has been
used in the pre-lock hooks. Does anybody have any idea about this?

Thanks
Giulio
 
 
Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851 VAT Reg No 778499447

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-07-01 13:25:05 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.