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

[TSVN] Re: Creating a branch with Tortoise SVN

From: Simon Large <slarge_at_blazepoint.co.uk>
Date: 2004-08-24 16:53:53 CEST

"Cary Collett" wrote
> I'm copying from svn+ssh://foo@bar.com/stuff
> to svn+ssh://foo@bar.com/stuff/branches/test

"David Smith" wrote
> You can't branch "stuff" to a directory beneath "stuff".

You can copy "stuff" to "stuff/test" if you really want to. What you cannot
do is get subversion to create a new folder within a non-existent folder.

You can copy from 'svn+ssh://foo@bar.com/stuff' to
'svn+ssh://foo@bar.com/stuff/test' because 'stuff' already exists.

You cannot copy 'svn+ssh://foo@bar.com/stuff' to
'svn+ssh://foo@bar.com/stuff/branches/test' unless 'stuff/branches' already
exists.

However, this structure is definitely not recommended practice, because you
have added a branch within the trunk. Next time you branch the trunk you
will get _another_ copy of the previous branch nested inside, and you get
more recursion on every branch you make. The TSVN manual recommends using
particular hierarchies for good reason (see Daily use guide: 4.3.1
Repository Layout).

Also, it is a good idea to do a WC update before a branch/tag - you get an
error message if you try to branch an out-of-date WC. The WC can be out of
date even directly after a commit - see Stefan's replies in the "Commit
failed while tagging" thread (started 2004-8-23) for an explanation.

Simon.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Aug 24 18:19:59 2004

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.