Skip to content

Instantly share code, notes, and snippets.

@ryfactor
ryfactor / port-cvs-to-git-with-reposurgeon.md
Created April 27, 2022 03:33
Port CVS repositories to git with reposurgeon

Port CVS repositories to git with reposurgeon

In a rush to change your old CVS repositories to git? Don't be. Take your time and get it right with Eric Raymond's reposurgeon. (But make haste while SourceForge is still up...!)

Some folk believe that reposurgeon is complicated, and that a simple invocation of cvs-fast-export will do. Arguably this is not true, in fact cvs-fast-export is just one of the tools in the reposurgeon toolset, and while it can be used by itself it's really better used as part of the overarching reposurgeon suite. Moreover, using cvssync, cvs-fast-export and git fast-import together means you are using a jumble of command line steps, whereas reposurgeon (built on those tools) entails just setting up some config files and letting it rip. Reposurgeon also has options for updating author info, timezones, character encoding, and more. So reposurgeon is more straightforward than trying to use cvs-fast-export directly, is more feature