Skip to contentSkip to conversation

Anyone working on a CVS->git converter?

DISCUSSION H. Peter Anvin 3 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Anyone working on a CVS->git converter? I'd like to move klibc development into git.

-hpa

#1 lore raw
Quoted 2 lines · H. Peter Anvin

Anyone working on a CVS->git converter? I'd like to move klibc development into git.

I tried it with two completely stupid scripts and the nice cvsps.

Here is the tree to browse:
http://ehlo.org/~kay/git/gitweb.cgi?p=klibc.git;a=log

In the CVS repo directory export patchsets as individual patches with a header containing metadata:
cvsps -x -b HEAD -g -p ../../patches/

split exported patches into individial files like author data, log, file list:
for i in seq 1 546; do ../parse-cvsps-patch.pl ../patches/$i.patch ;done

apply it to an completely empty git-repo:
for i in seq 1 546; do ../apply.sh ../patches/$i.patch ;done

Stupid scripts are attached. cvsps is here:
http://www.cobite.com/cvsps/

Kay

#2 lore raw
In reply to H. Peter Anvin
Quoted 1 line

Anyone working on a CVS->git converter?

Not directly, but you might get your wish Real Soon Now.

I'm currently putting the finishing touches on commit support for darcs-git. Once that's finished, you should be able to run tailor (the CVS to Darcs converter) over a Git repository.

So hold on for a few days, and drop me a mail if you don't hear from me.

Juliusz