git/list[1] front-page[2] threads[3] people[4] search[5] about
 

cvsimport: trying to convert freebsd cvs to git

From
Miklos Vajna <vmiklos@frugalware.org>
Date
Dec 22, 2007, 17:18 UTC
Message-ID
<20071222171801.GE15286@genesis.frugalware.org>
hi,

recently Stefan reported that he tried to convert the freebsd cvs' src module to git and he failed. i tried to help him, but i failed, too. here are my efforts:

he made the cvs available on a (relatively) fast rsync mirror at:
rsync://ftp.spline.de/FreeBSD-CVS
(so you don't have to use cvsup if it's a problem for you)
so after mirroring it, i had:

$ ls cvs CVSROOT/ CVSROOT-ports/ CVSROOT-src/ ports/ src/

then i tried:

$ time git cvsimport -d `pwd`/cvs -C src.git src Initialized empty Git repository in /home/vmiklos/git/freebsd/src.git/.git/ malformed revision fatal: refs/heads/origin: not a valid SHA1 fatal: master: not a valid SHA1 warning: You appear to be on a branch yet to be born. warning: Forcing checkout of HEAD. fatal: just how do you expect me to merge 0 trees? checkout failed: 256

real 15m11.529s user 0m46.212s sys 0m6.680s

my questions:
1) does cvsimport supports the case when the source if on the local
filesystem, and not in not on a cvs server?
first i wanted to make sure that cvsimport itself works properly here:
$ git cvsimport -d :pserver:anonymous@tcpflow.cvs.sourceforge.net:/cvsroot/tcpflow -C tcpflow tcpflow
and it converted this small repo fine
2) if it supports, then i think the real error message is 'malformed
revision'. what is the proper way to see where is that revision?

of course if cvsimport is not the right tool to incrementally convert such a big repo, then i would be interested in other advices, too.

thanks,
- VMiklos
Next: Anand Kumria
Message 1 of 9 in “cvsimport: trying to convert freebsd cvs to git”
  1. Miklos VajnaDec 22, 2007
  2. Anand KumriaDec 23, 2007
  3. David Soria ParraDec 23, 2007
  4. Jeff KingDec 23, 2007
  5. Martin LanghoffDec 23, 2007
  6. Jeff KingDec 24, 2007
  7. cvsimport: die on cvsps errorsJeff King, Dec 24, 2007
  8. Martin LanghoffDec 24, 2007
  9. Miklos VajnaDec 24, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.