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

Re: Am I at the _start_ of a branch ?

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Fri, 12 Nov 2010 15:26:55 +0100

On 12.11.2010 15:18, Richard M Willis wrote:
> [Stefan]
>> Since you treat your 'release' folder not as fixed but allow
>> commits there after creating them, my point was to use 'tags'
>> instead and have them fixed, i.e., not allowed to be committed to
>> after creation.
>
> Ah. I see. That is indeed what I am looking for: a method of having
> directories that can have stuff copied to them, but not accept
> commits. I'm sorry I gave the wrong impression that /releases/ was
> for allowing commits. I only said this because I don't (yet) know to
> prevent a directory being committed to. I assumed I'd need to set-up
> a pre/post commit hook to say "no; you can't commit because there's
> already something here".
>
> How do you do this, allow svn copy but not svn commit ?
>
> Is this a SVN thing, a TSVN thing, or a server-side thing ?
>
> Is it convention to have the /tags/ subdirecrtory as not allowing
> commits ? If so, how is this enforced, or does it depend on people
> doing the right thing ?

You can use a pre-commit hook script:
http://stackoverflow.com/questions/464384/svn-pre-commit-hook-for-avoiding-changes-to-tags-subdirectories

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2681307
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-11-12 15:27:10 CET

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.