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

Re: Copy from one repo to another

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Tue, 20 Oct 2009 04:02:43 -0500

On Oct 20, 2009, at 03:15, Modha Khammammettu wrote:

> I have a repository which I am currently working on "repocurrent"
>
> I need to copy contents from another repository "repoxx" into my
> repository.

Ok.

> I can checkout "repoxx" and import into "repocurrent" but this way I
> will loose checkin history.

Correct.

> Is there a way where I can copy contents of repoxx into repocurrent
> while maintaining history?

Yes: dump and load.

> Is checkout "repoxx" and importing into "repocurrent" the only way?

No.

You would "svnadmin dump" the "repoxx" repository, and "svnadmin load"
that dump into your "repocurrent" repository. This requires direct
file access to both repositories. If direct file access to "repoxx" is
not possible, you can use "svnsync" to make a local copy of "repoxx",
then "svnadmin dump" that.

Since this operation will probably make your repository's revisions no
longer chronological, date-based revision selection will no longer be
reliable. If this is a problem, there are alternatives, like dumping
your "repocurrent" repository too, and using svndumptool to merge your
"repocurrent" dump with the "repoxx" dump, then loading this into a
totally new empty repository. But this will renumber your existing
revisions, which may be bad for you for other reasons such as existing
references in log messages or your issue tracker, and the new
repository will have a new UUID and you must check out new working
copies, which may be inconvenient.

> I use Tortoise SVN. Help on tortoise svn merge option got me worried
> with its cautions on misuse..

TortoiseSVN isn't relevant to the task you want to accomplish. You'll
use svnadmin on the command line.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2409292

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-10-20 11:03:50 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.