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

Re: best way to add /trunk /tag /branch to existing repository

From: Andrey Repin <anrdaemon_at_freemail.ru>
Date: Wed, 9 Sep 2009 04:29:27 +0400

Greetings, Pat Farrell!

> I'm sure that there is an easy way to do this, but I can't find it in
> the RedBean...

Usually... svn move.

> I have a project under SVN that does not have the usual three paths for
> /trunk and /branch and /tag

> When I started it, it was just me, so there was no need for tags or
> branches.

Like me, but I prefer to see into the future and think twice before raising
a hand to do something. :)
While I do not have "tags/branch" dirs, I do all my work in trunk.

> The project is getting bigger, and I'd like to put the usual three in.

> So if I look at the top of the tree today, I see

> repos - Revision 3346: /bbook

> * ..
> * docs/
> * fnfapp/
> * fnflib/
> * mockups/
> * site/
> * sql/

> What I'd like to see is something like:

> * docs/
> /bbook/trunk/fnfapp/
> /bbook/tags/fnfapp/
> /bbook/branches/fnfapp/
> /bbook/trunk/fnflib/
> /bbook/tags/fnflib/
> /bbook/branches/fnflib/
> * site/
> * sql/

> Can someone give me the commands or a pointer into the right section of
> the RedBean or other sources.

Just for example:
svn move --parents http://yoursvnhost/bbook/fnfapp http://yoursvnhost/bbook/fnfapp/trunk
Actually, there could be a problem moving a directory into subdirectory of
itself... I'll leave it to you to find a way to resolve it.

Then, when you are need to create a first tag from it:
svn copy --parents http://yoursvnhost/bbook/fnfapp/trunk http://yoursvnhost/bbook/fnfapp/tags/somenewtag

That said, you do not need to explicitly create parent directories you do not need
right now. It can be done at a later date, in one single transaction.

Mmm... and from second reading of your message, i strongly advice you to think
twice about the future directory structure in the light of the future of a
whole project. Is it a single project or multiple ones?

 Andrey Repin (anrdaemon_at_freemail.ru) 09.09.2009, <4:16>
Sorry for my terrible english...
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-09 02:31:09 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.