[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: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: 2005-05-18 13:37:07 CEST

Marcus Rohrmoser wrote:
> is it possible (without manual dump fiddling) to merge 2 repositories?

Not that I knew of, but theoretically feasible. In fact I was working on
something like that once, but it means loading and parsing two dumpfiles,
sorting them by their commit date, adjusting paths, mapping revision numbers
between old and new repositories and possibly a whole slew of other problems
I haven't encountered yet.
It's not the fact that I gave up because of the task, but I lost interest as a
half as good solution was good enough for us at work. If there is interest, I
can supply you with the half-finished C++ code though.

> Scenario:
> When migrating e.g. cvs to svn we first set up a svn pilot apart the main
> cvs repo. Later, when we feel confident enough we'll convert the existing
> cvs repo and would like to merge in the pilot.
>
> How could we do this?

I'll attach a file which I used to do the same for our similar task, with the
diff that we migrated from VSS to SVN. The disadvantages are that the
commit-date is not preserved and it requires setting up some hooks for
changing revision properties first. This simple hack works by extracting a
configurable set of revisions and, using svn_load_dirs, puts them into the
target repository.

For us, it was good enough - YMMV and no guarantees.

cheers

Uli

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Received on Wed May 18 13:42:38 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.