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

Re: Organize Repository

From: Ryan Schmidt <subversion-2006c_at_ryandesign.com>
Date: 2006-08-03 15:44:10 CEST

On Aug 3, 2006, at 12:21, Hans-Juergen Schumacher wrote:

> Right now all development sources stay in HEAD. Now I would like to
> organize and create some branches as well as a trunk directory.
> What is the best strategy to do this? I thought maybe copy the code
> to branches and let the user switch to the new path. Is this a good
> way?

Sure. Something like this pseudocode:

svn co $REPO repo
cd repo
svn mkdir trunk
svn mkdir branches
svn mkdir tags
for each $ITEM other than trunk branches tags
        svn mv $ITEM trunk
end
svn ci -m "Reorganizing: moving everything into a new trunk directory"

And then email the team to tell them to switch their working copies
from $REPO to $REPO/trunk.

Then you have a trunk, and an empty branches directory. Then you can
copy the trunk to a new name in the branches directory to make a
branch, like it says in the book. Repeat as often as you like to
create additional branches.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Aug 3 15:47:59 2006

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.