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

Re: Subversion with CVS "backup"?

From: Brian Behlendorf <brian_at_collab.net>
Date: 2003-01-15 05:30:09 CET

On Tue, 14 Jan 2003, Alexander L. Belikoff wrote:
> tool I'm looking for is for the "shit hits the fan, SVN is dead, and I
> desperately need my revisions NOW!" kind of situation.

You want svn2cvs then. Which makes sense, I'ven heard other vendors of
source-code management tools crow about migration scripts that also go in
the other direction as an insurance policy for new customers, so there ya
go.

Superficially speaking, you could take the login in cvs2svn and reverse
it. Much more complicated than that, but perhaps it's the best place to
start.

In fact it might be even easier. Psuedocode:

N = number of revisions in your SVN DB
(for i in 1 to N) {
  svn update -i $i
  cvs commit -m "<get the log message for the $i-th svn commit>" .
}

Oh yeah, and handle directory/file renames. And prolly a bazillion other
things.

        Brian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jan 15 05:29:12 2003

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