Re: cvsimport/cvsps: wrong revisions in branch

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Simon 'corecode' Schubert
Date: Thursday, January 25, 2007 - 9:24 am

Uwe Kleine-K=C3=B6nig wrote:


yes, you need the rcsparse module, available from the same address.


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 co=
ndensed here and add this as a base for a README to the the repo.

=46rom CVS to * in little time
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D

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 modul=
e)
  - 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-pytho=
n>


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

--=20
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low =E2=82=AC=E2=82=AC=E2=82=AC NOW!1  +++=
      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
cvsimport/cvsps: wrong revisions in branch, Gerrit Pape, (Thu Jan 25, 7:22 am)
Re: cvsimport/cvsps: wrong revisions in branch, Simon 'corecode' Sch ..., (Thu Jan 25, 7:35 am)
Re: cvsimport/cvsps: wrong revisions in branch, Simon 'corecode' Sch ..., (Thu Jan 25, 9:24 am)
Re: cvsimport/cvsps: wrong revisions in branch, Shawn O. Pearce, (Thu Jan 25, 10:52 am)
Re: cvsimport/cvsps: wrong revisions in branch, Martin Langhoff, (Thu Jan 25, 7:06 pm)
Re: cvsimport/cvsps: wrong revisions in branch, Simon 'corecode' Sch ..., (Thu Jan 25, 11:20 pm)
Re: cvsimport/cvsps: wrong revisions in branch, Gerrit Pape, (Fri Jan 26, 2:00 am)
Re: cvsimport/cvsps: wrong revisions in branch, Robin Rosenberg, (Fri Jan 26, 4:12 pm)