Skip to content

How to import Core CVS to Git

magnum edited this page Mar 25, 2019 · 4 revisions

First import

  • install cvsps version 2 as v3 breaks cvsimport (for OSX brew tap Frizlab/Perso && brew install cvsps@2
$ cat authors.txt 
solar=Solar Designer <[email protected]>

$ git cvsimport -d :pserver:[email protected]/cvs -C TARGETDIR -r cvs -k -A authors.txt Owl/packages/john/john

Update

$ cd TARGETDIR

$ cat ../authors.txt 
solar=Solar Designer <[email protected]>

$ git cvsimport -d :pserver:[email protected]/cvs -r cvs -L 1 -k -A ../authors.txt Owl/packages/john/john

The -L 1 is a workaround, we got all commits to same file squashed into one without it (I'm pretty sure that wasn't the case in the past?). When using -L 1 you need to repeat the import (as in "arrow-up, enter") until you get "Already up to date."