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

RE: copying multiple revisions from 1 repository to another

From: Tim Alsop <Tim.Alsop_at_CyberSafe.Ltd.UK>
Date: 2004-06-13 00:38:30 CEST

Karl,

I discovered a way to do this.

1. Use svnadmin dump --incremental to create a dump file from rep1
2. Use svndumpfilter to filter out the directory tree that I need to
transfer to rep2
3. edit the new dump file to remove references to top level of directory
path from all Node-path: statements.
4. Use svnadmin load to load the dump file into rep2

Done !

The above procedure is complex and time consuming, but it works. I am
glad I don't need to do this every day. I hope that some day this will
be made easier through more command line tool functionality.

Regards, Tim.

-----Original Message-----
From: kfogel@newton.ch.collab.net [mailto:kfogel@newton.ch.collab.net]
On Behalf Of kfogel@collab.net
Sent: 09 June 2004 19:38
To: Tim Alsop
Cc: users@subversion.tigris.org
Subject: Re: copying multiple revisions from 1 repository to another

"Tim Alsop" <Tim.Alsop@CyberSafe.Ltd.UK> writes:
> The files in rep1 are more up to date than in rep2 so I want to copy
all
> revisions from rep1 into rep2, thus creating new revision numbers in
> rep1 for the files, but keeping the history of file changes etc. I
> eventually want to remove rep1 and continue working on rep2 as my new
> and latest repository. How can I copy all revisions for files in code
> directory (e.g. file1,2 and 3) into directory called core in rep2 ?

Copying from rep1 into rep2 would not create new revision numbers in
rep1 anyway, but rather in rep2.

However, there is no versioning-sensitive way to do a cross-repository
copy right now. You just have to add the files as new and indicate in
their log message (or something) that they were copied from another
repository.

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Jun 13 00:39:45 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.