You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Adrian Hoe <ma...@adrianhoe.com> on 2005/11/03 13:58:33 UTC
Need to create branches
Hi,
We don't see the needs to create branches for our projects. But
recently, this foresight has fallen short. One of my project needs to
create branches. How can I do this? Let say a project name Sumo. A
svn repository was created for Sumo as in /svn/Sumo.
Subdirectory Trunk and Branches were not created initially. So, the
directory structure such as:
/svn/Sumo/---+Trunk
|
+Branches
as in the tutorial was not there. How can I create a branch for Sumo
repository with directory structure of /svn/Sumo only?
Thanks.
--
"If you missed the rising sun and the morning dew, don't miss the
beautiful sunset." -- Adrian Hoe inspired by Michal Nowak, June 15 2004
http://adrianhoe.com
Re: Need to create branches
Posted by Duncan Murdoch <su...@murdoch-sutherland.com>.
On 11/3/2005 8:58 AM, Adrian Hoe wrote:
> Hi,
>
> We don't see the needs to create branches for our projects. But
> recently, this foresight has fallen short. One of my project needs to
> create branches. How can I do this? Let say a project name Sumo. A
> svn repository was created for Sumo as in /svn/Sumo.
>
> Subdirectory Trunk and Branches were not created initially. So, the
> directory structure such as:
>
> /svn/Sumo/---+Trunk
> |
> +Branches
>
> as in the tutorial was not there. How can I create a branch for Sumo
> repository with directory structure of /svn/Sumo only?
The names "trunk" and "branches" are just conventions, they don't have
any significance to Subversion. So you should decide what you'd like
the layout of the repository to be, then rearrange things to achieve
that. For example, if you want the conventional
/svn/Sumo/trunk
/svn/Sumo/branches/branch
you'd do it by using "svn move" to move all of /svn/Sumo to
/svn/Sumo/trunk, then creating /svn/Sum/branches, then copying
/svn/Sumo/trunk to /svn/Sumo/branches/branch.
But you could just create
/svn/Sumobranches/branch
and copy /svn/Sumo there. (You're probably better off in the long run
to follow one of the conventional organizations, but it's really up to you.)
Duncan Murdoch
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Need to create branches
Posted by Greg Thomas <th...@omc.bt.co.uk>.
On Thu, 3 Nov 2005 16:53:09 +0100, Ryan Schmidt
<su...@ryandesign.com> wrote:
>So the conclusion is that you really should create a directory trunk,
>move everything into trunk, and create a branches directory at the
>same level as trunk
Not necessarily. It is merely sufficient to not have the branches
directory under the trunk directory (whatever trunk is called). So you
could have
/svn/Sumo (trunk - as current, no move required)
/svn/Sumo-branches (for branches)
Greg
--
This post represents the views of the author and does
not necessarily accurately represent the views of BT.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Need to create branches
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Nov 3, 2005, at 16:22, Greg Thomas wrote:
> On Thu, 3 Nov 2005 23:13:18 +0800, Adrian Hoe <ma...@adrianhoe.com>
> wrote:
>
>> As Duncan mention that "trunk" and "branch" are just only
>> conventions. I think I would like to keep it that way:
>>
>> /svn/Sumo/BRANCHES/----+Branch1
>> |
>> +Branch2
>>
>> The reason I need to create branches is to test out several different
>> implementation of codes and OS platforms (like qt, Gtk, etc).
>>
>> The mainstream development will still reside in /svn/Sumo.
>
> The trouble with that is that each new branch you create will include
> all the previous branches prior to that date.
>
> For example, if you have
> /svn/Sumo/ - main code
> /svn/Sumo/BRANCHES - directory for branches
> /svn/Sumo/BRANCHES/branch1 - first branch
> /svn/Sumo/BRANCHES/branch2 - second branch
>
> when you create your third branch,
>
> svn cp /svn/Sumo/ /svn/Sumo/BRANCHES/branch3
>
> branch3 will now also contain branch1 and branch2 -
> /svn/Sumo/BRANCHES/branch3
> /svn/Sumo/BRANCHES/branch3/BRANCHES/branch1
> /svn/Sumo/BRANCHES/branch3/BRANCHES/branch2
So the conclusion is that you really should create a directory trunk,
move everything into trunk, and create a branches directory at the
same level as trunk, so that you avoid the problem Greg described above.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Need to create branches
Posted by Greg Thomas <th...@omc.bt.co.uk>.
On Thu, 3 Nov 2005 23:13:18 +0800, Adrian Hoe <ma...@adrianhoe.com>
wrote:
>As Duncan mention that "trunk" and "branch" are just only
>conventions. I think I would like to keep it that way:
>
>/svn/Sumo/BRANCHES/----+Branch1
> |
> +Branch2
>
>The reason I need to create branches is to test out several different
>implementation of codes and OS platforms (like qt, Gtk, etc).
>
>The mainstream development will still reside in /svn/Sumo.
The trouble with that is that each new branch you create will include
all the previous branches prior to that date.
For example, if you have
/svn/Sumo/ - main code
/svn/Sumo/BRANCHES - directory for branches
/svn/Sumo/BRANCHES/branch1 - first branch
/svn/Sumo/BRANCHES/branch2 - second branch
when you create your third branch,
svn cp /svn/Sumo/ /svn/Sumo/BRANCHES/branch3
branch3 will now also contain branch1 and branch2 -
/svn/Sumo/BRANCHES/branch3
/svn/Sumo/BRANCHES/branch3/BRANCHES/branch1
/svn/Sumo/BRANCHES/branch3/BRANCHES/branch2
Greg
--
This post represents the views of the author and does
not necessarily accurately represent the views of BT.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Need to create branches
Posted by Adrian Hoe <ma...@adrianhoe.com>.
On Nov 3, 2005, at 10:04 PM, Johan Appelgren wrote:
>
> You can reorganize the layout of your repository by creating a trunk
> directory and moving everything but the trunk directory in the root of
> your repository to the trunk directory. Then you can create a branches
> directory and you're all set. Or is there some reason you don't want
> to do that?
As Duncan mention that "trunk" and "branch" are just only
conventions. I think I would like to keep it that way:
/svn/Sumo/BRANCHES/----+Branch1
|
+Branch2
The reason I need to create branches is to test out several different
implementation of codes and OS platforms (like qt, Gtk, etc).
The mainstream development will still reside in /svn/Sumo.
Thank you very much for lighting me. I know what to do now.
Regards,
--
"If you missed the rising sun and the morning dew, don't miss the
beautiful sunset." -- Adrian Hoe inspired by Michal Nowak, June 15 2004
http://adrianhoe.com
Re: Need to create branches
Posted by Johan Appelgren <jo...@gmail.com>.
On 11/3/05, Adrian Hoe <ma...@adrianhoe.com> wrote:
> Hi,
>
> We don't see the needs to create branches for our projects. But recently,
> this foresight has fallen short. One of my project needs to create branches.
> How can I do this? Let say a project name Sumo. A svn repository was created
> for Sumo as in /svn/Sumo.
>
> Subdirectory Trunk and Branches were not created initially. So, the
> directory structure such as:
>
> /svn/Sumo/---+Trunk
> |
> +Branches
>
> as in the tutorial was not there. How can I create a branch for Sumo
> repository with directory structure of /svn/Sumo only?
You can reorganize the layout of your repository by creating a trunk
directory and moving everything but the trunk directory in the root of
your repository to the trunk directory. Then you can create a branches
directory and you're all set. Or is there some reason you don't want
to do that?
/Johan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org