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

Re: Locking Folders - Prevent new file addition

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Fri, 03 Oct 2008 09:46:31 +0200

mjpotts wrote:
> I would write a pre-commit script to do this, but the problem I see is that
> subversion really only locks files, not folders. so in order to check if
> the folder should be locked, you have to see if EVERY file in the directory
> is locked. Any other way around this or an easy way to check if every file
> in a directory is locked?

your pre-commit hook script could be very easy:
just check whether the url has /tags/ in it, and if it has, simply
reject the commit.
No need for locks or anything.
Of course, your script would have to allow the creation of the tags :)


  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net

Received on 2008-10-03 09:46:43 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.