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

Re: Can I prevent a file from being modified?

From: Andreas Krey <a.krey_at_gmx.de>
Date: Thu, 21 Jul 2011 18:47:07 +0200

On Thu, 21 Jul 2011 11:06:00 +0000, David Weintraub wrote:
> I have a pre-commit hook that allows you to set a directory as
> "add-only". This was mainly for the tags directory. You can create a
> tag, but once created, it can't be modified.

The devil's advocate wants to know it this script accidentally also
allows adding new files/directories *within* a tag; thus getting
interesting results when accidentally executing

   svn cp $base/trunk $base/tags/blub -m "$message"

twice (a directory named trunk within the tag).

Andreas

-- 
"Totally trivial. Famous last words."
From: Linus Torvalds <torvalds@*.org>
Date: Fri, 22 Jan 2010 07:29:21 -0800
Received on 2011-07-21 18:47:45 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.