Mailinglist Archive: opensuse (4634 mails)

< Previous Next >
[opensuse] Re: cvs to subversion
  • From: Joachim Schrod <jschrod@xxxxxxx>
  • Date: Fri, 15 Dec 2006 11:35:24 +0100
  • Message-id: <elttpc$k2a$1@xxxxxxxxxxxxx>
James D. Parra wrote:

Trying to convert a cvs repository to subversion, but I get an error when I

# cvs2svn -s --no-default-eol --tmpdir=/tmp/ svnrepos cvsroot

You must not call cvs2svn with the svnrepos. cvs2svn creates a Subversion dump file that must be loaded afterwards. From my SVN cheat sheet:

Migration of a Project from CVS to SVN:

Create a dump file from the CVS repository:

cvs2svn --dump-only --dumpfile=$project.svndump --use-cvs \
--cvs-revnums --no-default-eol $CVSROOT/$project

The option --symbol-transform allows to transform tag names, e.g., to map hyphens or underscores to dots.

With svndumpfilter one can change the created dump file: Remove parts of the repository, or specify which parts shall be imported.

Load the dump file into the SVN depot; to do on the SVN-Server:

svn mkdir svn+ssh://svn/$project
svnadmin load --parent-dir=$project /data/SVN/depot <$project.svndump

There is also a script verify-svn to check the migration. This must be tested, I haven't tried it yet.

I hope that the mail gateway won't insert new lines above.
Of course, your SVN base URL (above: svn+ssh://svn/) and your SVN repository directory (above: /data/SVN/depot/) will be different than mine.

Hope this helps,


Joachim Schrod Email: jschrod@xxxxxxx
Roedermark, Germany

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >