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

Re: combining repositories.

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-06-25 10:55:30 CEST

On Tue, Jun 25, 2002 at 12:48:35AM -0700, Faried Nawaz wrote:
> Let's say I have two separate repositories with different projects.
> Can I move a project from one repo to another? The CVS equivalent is
> cp -pr /repo1/dir /repo2/dir (you get to merge CVSROOT manually).
>
> svn cp doesn't quite do this.

You can certainly import one project into another. The files in the new
project won't retain their history, however (that is still back in the
original repository).

One day, we might enable 'svnadmin load' to load a dumpfile with a specified
prefix. That would enable merging of repositories.

In any case, the magic incantation is something like this:

$ svn co Some/URL/repo1
$ svn import Some/URL/repo2 repo1/dir newdir

That will import repo1/dir into repo2 as "repo2/newdir". Basically, you're
getting all the code onto your local machine, and then importing it up into
the repo2 repository.

[ note that a local working copy is needed. you cannot import from one
  repository directly to another ]

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jun 25 10:53:20 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.