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

Re: merging two repositories

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2004-02-17 05:29:33 CET

rz@cmu.edu writes:

> Hello,
>
> I am trying to move several projects over to subversion from CVS. I
> currently have a subversion repository that I've been using for a
> month or so. I also have several old CVS repositories that I would
> like to convert and then load into the subversion repository that I
> already have running.
>
> I am also using the:
>
> project1/
> trunk
> tags
> branches
> project2/
> trunk
> ...
>
> directory structure. I used cvs2svn to load one of the old cvs
> repositories into a test repository and moved the directories around
> to match the structure that I wanted. My question is, can I now just
> dump this repository and load it into the subversion repository that
> I'm already using without disturbing any of the projects that are
> already in the new repository?

Yeah, no sweat. If you don't already have a place in your repository
to import your second repos, use 'svn mkdir' to make one. And then
just use the --parent-dir option to 'svnadmin load'.

For example, I just ran 'cvs2svn --dump-only' to three CVS projects,
and I now have three dumpfiles -- (which I've renamed to) dump1,
dump2, and dump3. So then I do:

   $ svnadmin create repos
   $ svn mkdir -m "Make initial project roots." \
         file://`pwd`/repos/project1 \
         file://`pwd`/repos/project2 \
         file://`pwd`/repos/project3
   $ svnadmin load repos --parent-dir project1 < dump1
   $ svnadmin load repos --parent-dir project2 < dump2
   $ svnadmin load repos --parent-dir project3 < dump3

Done deal.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Feb 17 05:30:42 2004

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.