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

Re: Merge repositories?

From: Blair Zajac <blair_at_orcaware.com>
Date: 2005-05-19 10:57:19 CEST

Marcus Rohrmoser wrote:
> Brooke Smith schrieb:
>> I thought this was easy. I didn't read the original mail in full so not
>> sure if he had specific requirements.
>> The following will require "svn mv" to get the repositories properly
>> merged (since the source repo will be in a 'graft' directory), but its a
>> way to get one into another if needed:
>> Copying a repository into another
>> I've been creating tools at home and I'd like to bring them into the
>> work repository. Here is how this is done.
>> 1 Backup the destination repository!
>> svnadmin dump <path to repo> > dumpfile
>> 2 A directory to 'graft' the source repository needs to be made.
>> This is because directories in the two directories will conflict.
>> svn mkdir <server/repo>/dir_to_graft_source_repo -m "Adding a dir we can
>> use to graft the source repository onto"
>> 3 Now load into that directory
>> svnadmin load <path to destn repo> --parent-dir dir_to_graft_source_repo
>> < source_repo.dump
>> This could be useful.
> Hm, but this won't work for overlapping changesets (according commit
> time) in the two repos, will it?

No, this will work. I've done a ton of these merging several year old
CVS repositories into Subversion repositories that had fresh commits.

You just won't be able to count on specifying revisions by date using
the -r { DATE } argument.


Blair Zajac, Ph.D.
Subversion and Orca training and consulting
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 19 10:59:05 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.