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

Re: How to migrate just part of a repo to another server

From: Stefan Sperling <stsp_at_elego.de>
Date: Tue, 6 Sep 2011 22:02:23 +0200

On Tue, Sep 06, 2011 at 02:44:41PM -0500, Les Mikesell wrote:
> On Tue, Sep 6, 2011 at 1:41 PM, Stefan Sperling <stsp_at_elego.de> wrote:
> >> Now, when I try to run cat svn-dumpfile | svndumpfilter include
> >> /htdocs/CCDB | svnadmin load /path/to/new/repo I get an error from
> >> svndumpfilter:
> >> svndumpfilter: Invalid copy source path '/CCDB'
>
> > Somewhere in history the path you include was copied from /CCDB.
> > You need to include copy history, i.e. you need add /CCDB to your
> > include list.
>
> I know I have some projects that were imported or loaded from a cvs
> conversion into the wrong place, then immediately moved. I haven't
> tried to separate these back out, but if I ever do, is there a way to
> clean up the path? Would it work to start the dump at the revision
> of the move to the current path (without --incremental) if I'm willing
> to lose the older history that might have been in a cvs conversion?

You'd have to edit the dump file to transform the copy event into a plain
addition, i.e. fake a different history. That is not what 'svnadmin
dump' and 'svndumpfilter' have been designed to do.
I don't know of any tools that automate this.
Received on 2011-09-06 22:02:58 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.