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

Re: Need to create branches

From: Duncan Murdoch <subversion_at_murdoch-sutherland.com>
Date: 2005-11-03 15:12:35 CET

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
Received on Thu Nov 3 16:53:04 2005

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.