1 ' **fromcvs** ' is a cvs to hg converter.
2 This howto will show you how to test Simon 'corecode' Schubert's ***fromcvs***.
11 These packages are needed to run fromcvs.
13 *mercurial (devel/mercurial)
15 *git (devel/scmgit), if you want to convert to git
17 *rcsparse http://ww2.fs.ei.tum.de/~corecode/hg/rcsparse
21 *ruby-rbtree http://www.geocities.co.jp/SiliconValley-PaloAlto/3388/rbtree/rbtree-0.1.3.tar.gz
24 First, install ruby and mercurial.
25 > cd /usr/pkgsrc/lang/ruby
27 > cd /usr/pkgsrc/devel/mercurial
31 Or, if you prefer using binaries (requires a proper set PKG_PATH).
36 Install the ruby modules.
37 > hg clone http://ww2.fs.ei.tum.de/~corecode/hg/rcsparse
38 > cd rcsparse && ruby extconf.rb && make
42 > ftp http://www.geocities.co.jp/SiliconValley-PaloAlto/3388/rbtree/rbtree-0.1.3.tar.gz
43 > tar xzf rbtree-0.1.3.tar.gz
44 > cd rbtree-0.1.3 && ruby extconf.rb && make
52 Finally, get the program and run it!
53 > hg clone http://ww2.fs.ei.tum.de/~corecode/hg/fromcvs
56 > ruby tohg.rb <CVSROOT> <module> <hgdir>
61 > ruby togit.rb <CVSROOT> <module> <gitdir>
66 Convert the DragonFly source from your local cvs repo to your own mercurial repo:
68 > ruby tohg.rb /home/dcvs src myhgrepo
73 > mkdir hygitrepo && ( cd mygitrepo && git init --bare )
74 > ruby togit.rb /home/dcvs src mygitrepo
79 Report problems (fixes as well) to corecode.