20/04/2009

SourceForge.net: Migrating from CVS to GIT...

As I have been planning for a long time to do this move, I will post here my experiences with one of my projects at sourceforge.net to migrate it from CVS to GIT... Here are the steps, and believe me, those seem to be the safe one (the logical ones didn't work as well as those):
  1. Backup your project:
  2. rsync -av rsync://jlibdc1394.cvs.sourceforge.net/cvsroot/jlibdc1394/* .
  3. Transfer one module to a svn repo:
    cvs2svn -s MODULE ../PLACE_YOU_DID_RSYNC/MODULE
  4. Install the svn2git:
    git clone git://github.com/jcoglan/svn2git.git
    rake gem
    sudo gem install pkg/svn2git-1.0.0.gem
    # On ubuntu you run it with /var/lib/gems/1.8/bin/svn2git file:///...
  5. For each module, you will create an empty directory and inside that directory run:
     /var/lib/gems/1.8/bin/svn2git file:///PATH_TO_MODULE
  6. Well, this gives you a bunch of modules, with their branches, if you had them. So, from here, your hell begins... Myself, I had 3 modules, that I checkout in branches. I did it in empty branches for each module:
    git symbolic-ref HEAD refs/heads/MODULE_NAME
    #removed everything from the old branch switch...
    rm .git/index
    git clean -fdx
    git pull PATH_TO_GIT_SVN_MODULE
    git push --all
  7. You can also move some remote branches, or move:
    git push origin origin/OLD:refs/heads/NEW
    # delete the old branch
    git push origin :OLD
  8. This should give you enough flexibility and people can still use those branches. Idealy, you should have super-project and sub-projects. But git is not that great on that yet... and the tools are also failing on this topic.
  9. You can see the results from here: http://jlibdc1394.git.sourceforge.net/git/gitweb.cgi?p=jlibdc1394

15/04/2009

Launchpad: Now it is for real...it is going to be OSS

Just read some email from launchpad users ML, and there was a real nice pointer to this website: https://dev.launchpad.net/OpenSourcing. So, it is for real! Launchpad is going Open Source as of July! That is going to help the development on such platform...

14/04/2009

SourceForge.net: a git experience...

Ok, first, this is my initial entry to blogging... I hated the idea, I still do, but I need to save and share some of the things that I do in a faster way. I wish that sourceforge will have better interface...

Anyway, here are some of the steps that I did to use the git with sourceforge.

  1. You need the git-svn installed
  2. git-svn clone:
    git-svn clone https://libdc1394.svn.sourceforge.net/svnroot/libdc1394/trunk/libdc1394/
  3. Do your work, like you do in git, git add, git commit...
  4. And, at the end:
    git-svn dcommit --username SF_USER