You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Geppo <ge...@eircom.net> on 2008/10/16 15:21:39 UTC

Migrating multiple CVS repositories into one SVN repository

Hi,
I'm trying to migrate two CVS repositories into one SVN repository
using the cvs2svn utility.
I've migrated the first one without any problem. This has created an
SVN repository (/source/new_repository/).
When I try to migrate the second CVS repository into the same SVN
repository, I get the error below.
Any suggestion?

Also the cvs2svn has migrated also the CVSROOT folder so I wanted to
delete it using the Eclipse SVN plugin, but when I try to do it I get
the following error: "Can't create directory '/source/new_repository/
db/transactions/1069-2.txn': Permission denied".
Any idea?
Thank you,
G.

Creating Subversion r2649 (commit)
Done
Time for pass13 (CreateRevsPass): 20.23 seconds.
----- pass 14 (SortSymbolsPass) -----
Sorting symbolic name source revisions...
Done
Time for pass14 (SortSymbolsPass): 0.579 seconds.
----- pass 15 (IndexSymbolsPass) -----
Determining offsets for all symbolic names...
Done.
Time for pass15 (IndexSymbolsPass): 0.497 seconds.
----- pass 16 (OutputPass) -----
Starting Subversion Repository.
Starting Subversion r1 / 2649
Starting Subversion r2 / 2649
ERROR: svnadmin failed with the following output while loading the
dumpfile:
svn: File already exists: filesystem '/source/new_repository/db',
transaction '1069-1', path 'trunk'

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

Re: Migrating multiple CVS repositories into one SVN repository

Posted by Michael Haggerty <mh...@alum.mit.edu>.
[cvs2svn questions should really go to the cvs2svn mailing list at
users@cvs2svn.tigris.org.]

Geppo wrote:
> I'm trying to migrate two CVS repositories into one SVN repository
> using the cvs2svn utility.

This is covered in the several cvs2svn FAQ entries [1].  The fact that
you are starting with two separate CVS repositories is actually not
interesting to cvs2svn; you can still convert both of them (as separate
projects) in a single run of cvs2svn.

If you need to convert them at different times for some business reason,
then you need to convert the second one to a --dumpfile and then
"svnadmin load" it with the --parent-dir option.

Michael

[1] http://cvs2svn.tigris.org/faq.html

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

Re: Migrating multiple CVS repositories into one SVN repository

Posted by Jens Seidel <je...@users.sf.net>.
On Thu, Oct 16, 2008 at 08:21:39AM -0700, Geppo wrote:
> I'm trying to migrate two CVS repositories into one SVN repository
> using the cvs2svn utility.
> I've migrated the first one without any problem. This has created an
> SVN repository (/source/new_repository/).
> When I try to migrate the second CVS repository into the same SVN
> repository, I get the error below.
> Any suggestion?

Two suggestions:

 1) Touch the CVS files so that both repositories look like a single
    one. Administration files of CVS (CVS/*) are really simple, this
    should be no problem.
    I converted in the past a RCS based repository into a CVS one by
    using such tricks and converted this via cvs2svn into a Subversion
    repository.

 2) Create two separate Subversion repositories and merge both using
    svnadmin dump/load together with svndumpfilter. See
    http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.reposadmin.maint.tk.svndumpfilter
    Nevertheless svndumpfilter is probably only useful to split
    repositories, not for merging.

I suggest solution 1)

Jens

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