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

Perl locking help

From: John <jsparrow_at_ecclescollege.ac.uk>
Date: 2005-05-30 14:30:21 CEST

I'd like to write a perl script that allowed me to limit locking control,
so that:

Users can release any locks they created.
Only specific user(s) can break other peoples' locks.

However, one slight problem - i don't know any Perl ;) The shell script supplied
as a template is great if your a Unix user, but I'm using Win32 and I'd like to
stick with Perl if I can (I could install a Unixesque shell I suppose, but I'd
rather not).

Can someone give me some pointers, and maybe a little bit of perl example code??

Am I right in thinking I will only need pre-lock (for possibly stealing locks)
and pre-unlock (for possibly breaking locks) hooks? Is there any way a commit
can break a lock?

Another question: are the lock hooks called atomically for each file, or is
there some way of communicating arrays to them (or a whole path to have it's
files locked)?



To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon May 30 14:37:52 2005

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.