[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: Nicolas Goutte <nicolas.goutte_at_extragroup.de>
Date: Fri, 12 Nov 2010 15:29:28 +0100

Am 12.11.2010 um 15:18 schrieb Richard M Willis:

> [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 ?

To defintively block commits, whatever the client used, you surely
must do it server-side. Probably you should somehow test that you do
not allow commits where directory/file already exists.

> 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 ?

Yes, it is a convention of the classical Subversion recommendation
(hinerited from the CVS model).

Commits on tags are still possible. tortoiseSVN asks if the user
really wants this. subversion command line clients do not block
anything (as written before, Subversion itself does not care).

See also: http://svnbook.red-bean.com/en/1.5/svn-book.html#svn.branchmerge.tags

> ------------------------------------------------------
> http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2681305
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org
> ].

Nicolas Goutte

extragroup GmbH - Karlsruhe
Waldstr. 49
76133 Karlsruhe

Geschäftsführer: Lars Busch
Registergericht: Amtsgericht Münster / HRB: 5624
Steuer Nr.: 337/5903/0421 / UstID: DE 204607841


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-11-12 15:29:39 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.