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

Re: repository split

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Fri, 26 Jun 2009 01:40:21 -0500

On Jun 25, 2009, at 18:08, Vadym Chepkov wrote:

> I was using subversion with apache and just one repository, so I had
>
> SVNPath /var/svn/repos
>
> In the repository I had several projects:
> projectA
> trunk
> branches
> tags
> projectB
> trunk
> branches
> tags
>
> I decided to split one repository into two and this is what I did
>
> svnadmin dump /var/svn/repos > ~/oldrepos.dump
> rm -rf /var/svn/repos
> mkdir /var/svn/repos
> cd /var/svn/repos
> svnadmin create projectA
> cat ~/oldrepos.dump | svndumpfilter include projectA | svnadmin load
> projectA
> svnadmin create projectB
> cat ~/oldrepos.dump | svndumpfilter include projectB | svnadmin --
> ignore-uuid load projectB
>
> and changed apache to
> SVNParentPath /var/svn/repos
> SVNListParentPath On
>
> It would be almost perfect, except one thing, trunk of the URL is now
> located in
> http://server/svn/projectA/projectA/trunk instead of just http://
> server/svn/projectA/trunk
> . I understand, it's possible to shuffle directories around later, but
> I wanted this transition to be unnoticeable to users, if possible
> (that's why I inherited UUID for projectA). Is there a way to re-write
> the path somehow?

I don't think it can be a transparent transition. You must give both
new repositories new UUIDs that are different from that of the
previous combined repository, because they are different
repositories. Then all users must check out new working copies.

To fix the doubled "projectN" in the URLs, simply use "svn mv" to get
things the way you want them.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2365601

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-26 08:41:32 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.