Mailinglist Archive: opensuse (3893 mails)

< Previous Next >
[opensuse] Re: cvs to subversion
  • From: Joachim Schrod <jschrod@xxxxxxx>
  • Date: Tue, 02 Jan 2007 02:56:36 +0100
  • Message-id: <ence4k$nbm$1@xxxxxxxxxxxxx>
James D. Parra wrote:

Create a dump file from the CVS repository:

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

Thank you. It helps a lot.

What is 'project=XXX'? Is that in a file?

This is a shell statement; it assigns the name of a project (XXX in my example) to the shell variable project. Wherever $project later is mentioned, that value is used.

I created the dir called svnrepos for subversion. The cvsroot dir contains
all of the CVS data & projects. Does the above command just do one project
at a time? If so, is there a way to it all at once?

Yes, this does the conversion once at a time. If one uses just $CVSROOT instead of $CVSROOT/$project, the whole CVS repository is converted at once. One needs to leave off the --parent-dir option at the svnadmin load command then, too.

But in my opinion this is only sensible if the projects are very tightly related. Otherwise, the resulting SVN directory structure with trunk, tags, and branches is not practical.

Joachim

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod Email: jschrod@xxxxxxx
Roedermark, Germany

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

< Previous Next >
This Thread
  • No further messages