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

Re: Lock a branch

From: Gavin Baumanis <gavinb_at_thespidernet.com>
Date: Wed, 8 Apr 2009 10:13:39 +1000

Abe et al,

Whilst Paul is correct and use seem to have handle on it now too, for
people who might be new to SVN or stumble across the thread sometime
later - let me offer the following;

Subversion does not treat ANY folder differently to any other folder.
The trunk / branches / tags folders are a naming convention to assist
humans in managing their code.

As with all conventions, it is a guide - humans will ALWAYS make errors!

The convention says;
Do all your work in a directory named "trunk".
Do anything that might break the trunk in a branch (a sub-directory of
the "branches" directory) - so as not to break the trunk with
experimental code.
Use the "tags" directory for a snapshot in time of the trunk at a
particular revision - (File releases / some other milestone you want
to track).

You may well use pre / post commit hooks and / or access controls that
help control what users can or can't do in in a certain directory of
the repository - but the hooks / access controls can be attributed to
any path.

Your repository MAY look like this;
trunk/
tags/
  |____ 2009010101/
  |____ 2009021301/
  |____ 2009021302/
  |____ r123456
  |____ r123500
branches/
  |____ experimentalFeatureBranch1/
  |____ experimentalFeatureBranch2/

The svn book is an absolutely tremendous document.
Written in very easy to read plain language with plenty of examples.

While "I" think everyone should read the whole book;
Try the following for any clarification;

http://svnbook.red-bean.com/nightly/en/svn.tour.importing.html#svn.tour.importing.layout
     for the "proposed" directory conventions
     and
http://svnbook.red-bean.com/nightly/en/svn.tour.cycle.html
     everyday usage
     and
http://svnbook.red-bean.com/nightly/en/svn.branchmerge.html
     does a fabulous job of explaining / demonstrating the use of
branches, how and why you would bother.

Gavin.

On 08/04/2009, at 3:23 AM, Subversionator wrote:

> Ok, corrected. I'm assuming that that semantic is created on the
> repository
> side; that there's a pre-commit hook implemented, that distinguishes
> between
> tags and branches and rejects the commit.
>
> http://svnbook.red-bean.com/nightly/en/svn.reposadmin.create.html#svn.reposadmin.create.hooks
>
> abe
>
>
> Paul Koning-4 wrote:
>>
>>>>>>> "Subversionator" == Subversionator <abraham.a.ehrlich_at_jpmorgan.com
>>>>>>> >
>>>>>>> writes:
>>
>> Subversionator> Move the branch to a tag. In other words, a branch
>> Subversionator> is a series of revisions under the branch directory.
>> Subversionator> A tag is associated with a particular revision. So
>> Subversionator> if you svn mv URL/branches/yourbranch
>> Subversionator> URL/tags/yourtag it won't be editable anymore.
>>
>> Not true.
>>
>> Subversion just deals with path names. "branch" and "tag" are just
>> naming conventions, they have no distinct semantics. In particular,
>> you can commit new revs to any pathname so long as the access
>> controls
>> say that you can.
>>
>> If you want to have tags in the sense of "this thing can be created
>> but once created can't be modified" that's easy, just set up access
>> controls to disallow writes other than creates. But you have to do
>> that, Subversion doesn't.
>>
>> paul
>>
>> ------------------------------------------------------
>> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1580038
>>
>> To unsubscribe from this discussion, e-mail:
>> [users-unsubscribe_at_subversion.tigris.org].
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Lock-a-branch-tp7209400p22934082.html
> Sent from the Subversion Users mailing list archive at Nabble.com.
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1580333
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org
> ].

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1586485

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-08 02:14:35 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.