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

Re: Setting "tags" to read only ?

From: Les Mikesell <lesmikesell_at_gmail.com>
Date: Wed, 29 Sep 2010 09:40:36 -0500

On 9/29/2010 9:20 AM, Phil Pinkerton wrote:
> How can we set a tag as read only at creation time ?
>
> We have a tags subdirectory and we keep tags created from trunk there,
> we want to set these tags to ready-only so they cannot be modified.

You probably want a pre-commit hook that blocks commits to existing
tags. You should be able to find examples with google but you may have
to adapt the location check to your conventions.

> We
> also copy our tags to a static tag for build reference ( we call this a
> sliding tag ). The static tag always has the same name but is always a
> copy of the actual tag to be built.

How do you deal with concurrency at that point? Or know that the same
thing is still there after the build completes?

> Is it possible to set these tags to read-only once ther are copied from
> the trunk to the tags directory ?

You can do whatever you want in a hook script.

-- 
   Les Mikesell
    lesmikesell_at_gmail.com
Received on 2010-09-29 16:41:24 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.