The Return of CVS!

schwern on 2005-08-17T18:11:08

Since Apple ate my hard drive I lost my CVS repository leaving me with only the few projects I'd imported into SVN. So I've been holding off working on most of my other CPAN modules until my repo is restored.

I just recovered a rather old repository off an old drive and I think this is the best its going to get. Its from May 2002. That might seem really old but its newer than about half my modules. The rest I'll just have to write up as a loss and import into SVN fresh from CPAN.

What all this means is I can start updating old modules again.


Svk Rescued Me

chromatic on 2005-08-17T18:55:26

I like svk. I pulled a lot of old versions of my modules off of Backpan, created an svk repository for them, and extracted each old version one at a time into the appropriate directory, updating svk each time. It's a process almost worth automating.

(The only trick is that the modules beneath directories containing version numbers, but a simple rename worked just fine.)

svn_load_dirs.pl

schwern on 2005-08-20T01:08:43

There's a program hidden in the SVN contrib directory called svn_load_dirs which can load successive versions of a project into SVN for you doing all the necessary adds and deletes.

Re:svn_load_dirs.pl

chromatic on 2005-08-20T05:35:26

Once again I regret not procrastinating!

cvs2svn

Dom2 on 2005-08-18T08:51:01

I can recommend cvs2svn. It did a pretty reasonable job of converting my cvs repository to subversion. Of course, you'll want to go in afterwards and do a bit of tidying up, but on the whole it's pretty easy.

The main problem is the time. It was pretty quick for my home repository, but the one at work took several hours and resulted in over 35,000 commits.

-Dom

Re:cvs2svn

schwern on 2005-08-20T01:13:18

Yes, I used cvs2svn to do my initial conversion of a handful of projects but didn't do them all at once as I wasn't sure I was going to stick with SVN at the time. Kicking myself now for not having just done it all in one shot.

I also recently did a conversion of a 500 meg (compressed) CVS work repo spanning about half a decade of development. Took just 2 hours to dump resulting in an 800 meg dump file and about an hour to load. 27,000 revisions. It did an excellent job of finding all the branches and tags and even dealt with all the hacking and shifting around of RCS files they've done over the years.

And then the joys of being able to rename and delete directories begin.

Re:cvs2svn

Dom2 on 2005-08-20T21:53:25

Yes, the cleaning up after conversion import is the hard bit IMHO. I still haven't really found a good solution to reorganising a subversion repository. I'm still using a whole bunch of command line renames. Alas, I don't think there's a better way.

-Dom