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

Re: Question on reorganizing repository

From: Johan Appelgren <johan.appelgren_at_gmail.com>
Date: 2005-11-07 19:20:11 CET

On 11/7/05, David Demner - Subversion <svn@demner.com> wrote:
> >> I currently have a repository in the following format:
> >>
> >> project/trunk/subproject1/files
> >> project/trunk/subproject2/files
> >>
> >> and I'd like to reorganize this into 2 repositories in the following
> >> format:
> >>
> >> subproject1/trunk/files
> >> subproject2/trunk/files
> >>
> > How did you try to use svn move? And what errors did you get?
> >
> > Something similar to this should work:
> > svn mkdir pathtoserver/subproject1
> > svn mv pathtoserver/project/trunk/subproject1
> > pathtoserver/subproject1/trunk
> >
>
> Unfortunately, I can't use svn move directly since it's between
> repositories (the existing one for project and the new ones I created for
> subproject1 and subproject2). I think the closest I got was this:
>
> svnadmin dump project > projdump
> svnadmin create subproject1
> svnadmin load subproject1 < projdump
> svn del subproject1/trunk/subproject2
> svn move subproject1/trunk/subproject1 subproject1/trunk
>
> The last step gives me an error: "Path 'subproject1' already exists"
>
> I tried some variations on this, but never got any further.

Sorry, didn't understand that you were trying to split a repository.
You should read the section on svndumpfilter in the subversion book.
There is an example there where they go through splitting up a
repository step by step.

http://svnbook.red-bean.com/en/1.1/svn-book.html#svn-ch-5-sect-3.1.3

/Johan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Nov 7 19:22:11 2005

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.