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

Re: cvsimport/cvsps: wrong revisions in branch

From
Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
Date
Jan 25, 2007, 16:24 UTC
Message-ID
<45B8D9D1.2000802@fs.ei.tum.de>
In-Reply-To
<20070125150536.GA8314@cepheus>
Uwe Kleine-König wrote:
Show 6 quoted lines
> I don't know ruby nor hg, but I managed to clone your repo.  Now I'm
> stuck with:
> 
> 	zeisberg@cepheus:~/hsrc/fromcvs$ ruby1.8 fromcvs.rb 
> 	fromcvs.rb:1:in `require': no such file to load -- rcsfile (LoadError)
> 	        from fromcvs.rb:1
yes, you need the rcsparse module, available from the same address.
> Is there some documentation how to get that to work?
I've written it a million times to different people on irc, but somehow I never got around to making a README out of it.  I'll write it up very condensed here and add this as a base for a README to the the repo.

From CVS to * in little time ============================

Prerequisites:
  - ruby (1.8.5 known working)
  - fromcvs, <http://ww2.fs.ei.tum.de/~corecode/hg/fromcvs>
  - rcsparse, <http://ww2.fs.ei.tum.de/~corecode/hg/rcsparse> (ruby module)
  - Ruby/RBTree, <http://raa.ruby-lang.org/project/ruby-rbtree/>
  - for git: git-fast-import, <git://repo.or.cz/git/fastimport.git/>
  - for hg: ruby-python, <http://ww2.fs.ei.tum.de/~corecode/hg/ruby-python>
How to convert a CVS repo:
There is still a nice frontend missing, so you have to invoke the scripts by hand.

% mkdir gitdest && (cd gitdest && git init) % ruby togit.rb /path/to/cvsroot modulename gitdest % cd gitdest && git-repack -a -f -d # optional, saves 20% or so

If you want to get nice author names, create setup the file authormap:

cat > /path/to/cvsroot/CVSROOT/authormap corecode Simon 'corecode' Schubert <corecode@fs.ei.tum.de> jdoe Jon H. Doe <hannidoe@example.net> branch-fixup CVS repo conversion <flames@example.net>

that's about for the quickstart.  be sure to report conversion errors or runtime issues (possibly due to obscure CVS repo activity) to me.
cheers
  simon
-- 
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \
Previous: Uwe Kleine-KönigNext: Shawn O. Pearce
Message 4 of 10 in “cvsimport/cvsps: wrong revisions in branch”
  1. Gerrit PapeJan 25, 2007
  2. Simon 'corecode' SchubertJan 25, 2007
  3. Uwe Kleine-KönigJan 25, 2007
  4. Simon 'corecode' SchubertJan 25, 2007
  5. Shawn O. PearceJan 25, 2007
  6. Martin LanghoffJan 26, 2007
  7. Simon 'corecode' SchubertJan 26, 2007
  8. Robin RosenbergJan 26, 2007
  9. Gerrit PapeJan 26, 2007
  10. Jakub NarebskiJan 26, 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.