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

Re: problem splitting a repository

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-02-03 11:37:23 CET

On Feb 3, 2006, at 06:24, Jim Alateras wrote:

> Currently, I have the following layout
>
> repo/
> /branches
> /tags
> /trunk
> /project1
> /project2
> /project3
>
> but want to move to the following layout
>
> repo/
> /project1
> /branches
> /tags
> /trunk
> /project2
> /branches
> /tags
> /trunk
> /project3
> /branches
> /tags
> /trunk

[snipped dump/filter/load attempt]

I don't think I'd use a dump/filter/load approach for this; I'd just
use regular client-side Subversion commands.

U=url://to/repository

svn mkdir $U/project1 -m "Making empty project1 directory"
svn mkdir $U/project2 -m "Making empty project2 directory"
svn mkdir $U/project3 -m "Making empty project3 directory"

svn mv $U/trunk/project1 $U/project1/trunk -m "Moving project1 trunk"
svn mv $U/trunk/project2 $U/project2/trunk -m "Moving project2 trunk"
svn mv $U/trunk/project3 $U/project3/trunk -m "Moving project3 trunk"

svn mv $U/branches/project1 $U/project1/branches -m "Moving project1
branches"
svn mv $U/branches/project2 $U/project2/branches -m "Moving project2
branches"
svn mv $U/branches/project3 $U/project3/branches -m "Moving project3
branches"

svn mv $U/tags/project1 $U/project1/tags -m "Moving project1 tags"
svn mv $U/tags/project2 $U/project2/tags -m "Moving project2 tags"
svn mv $U/tags/project3 $U/project3/tags -m "Moving project3 tags"

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 3 11:38:58 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.