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

Re: Creating branches

From: Dmitri Colebatch <dim_at_colebatch.com>
Date: 2007-01-10 22:43:14 CET

On 1/11/07, stephen.3.odonnell@bt.com <stephen.3.odonnell@bt.com> wrote:
> Sorry that was a typo – I get what you expected to see
>
> Branch
> Rel_1.0
> Trunk
> …
>
> Another reply pointed out to me that I can get rid of the trunk part by not
> pre-creating the Rel_1.0 giving me what I want.

You will also get this is you create the branch twice. ie, starting with:

Branch/
  [empty]
Trunk/
  Dir1/
  Dir2/

And then doing:
  svn copy http://...../Trunk http://...../Branch/Rel_1.0
gives you:

Branch/
  Rel_1.0/
    Dir1/
    Dir2/
Trunk/
  Dir1/
  Dir2/

If you then do
  svn copy http://...../Trunk http://...../Branch/Rel_1.0
(again), you will get:

Branch/
  Rel_1.0/
    Dir1/
    Dir2/
    Trunk/
      Dir1/
      Dir2/
Trunk/
  Dir1/
  Dir2/

which when you think about it is the same behaviour that cp (or copy)
gives you on a local filesystem.

cheers
dim

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 10 22:43:41 2007

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.