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

Re: Create-only access to tags subdirectory

From: Max Bowsher <maxb_at_ukf.net>
Date: 2004-10-01 01:33:01 CEST

Paul Moore wrote:
> I'm OK with Subversion's approach of using cheap copies as tags (I
> am, honest I am, no really...) but one thing I do feel somewhat
> nervous over is that a "tag" is neither more nor less "frozen" than
> any other copy of the project. Mistakes, misunderstandings, or even
> lazy "it won't matter" shortcuts do happen, and the integrity of a
> tag can be lost.
>
> Ideally, I'd like to make the tags subdirectory of my repository
> "create only" - ie, copies can be added to the tags directory, and
> read, but once they have been created they cannot be updated.
>
> I can't see any obvious way of doing this, although I have to admit I
> haven't looked too closely at the security features (I don't know
> much about Apache security, of which this is a subset, so there's a
> lot to get to grips with :-() Can anyone give me any pointers? (Or
> tell me it's impossible so I don't waste time on it!)

It can be done quite easily by running "svnlook changed" in a pre-commit
script, parsing and processing the output, and maybe rejecting the commit.

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Oct 1 01:47:34 2004

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.