Archive for febrero, 2010

No le veo la utilidad a git-svn


2010
02.03

Ya que estoy trabando con un pequeño grupo de desarrolladores mejorando Drools me dieron ganas de probar git y ver si lo podíamos usar internamente para no tener que crear branchs en el repositorio central.

Entonces como todo el mundo hace me puse a leer la man page de git-svn y ahí nomás me bajaron las expectativas de un plumazo en la session “caveats” dice:

For the sake of simplicity and interoperating with a less-capable system (SVN), it is recommended that all git svn users clone, fetch and dcommit directly from the SVN server, and avoid all git clone/pull/merge/push operations between git repositories and branches. The recommended method of exchanging code between git branches and users is git format-patch and git am, or just ‘dcommit’ing to the SVN repository.

You must therefore ensure that the most recent commit of the branch you want to dcommit to is the first parent of the merge. Chaos will ensue otherwise, especially if the first parent is an older commit on the same SVN branch.

git clone does not clone branches under the refs/remotes/ hierarchy or any git svn metadata, or config. So repositories created and managed with using git svn should use rsync for cloning, if cloning is to be done at all.

Lo que en español significa que sólo podes usar git-svn si no utilizas ninguno de los features interesantes en git, no podés clonar de mi copia y la mejor forma de compartir cambios es comiteando directo al repo svn… En conclusión para aprender una nueva parva de comandos me quedo svn.

Igualmente todavía tengo la esperanza que aparezca alguien que me diga el man page esta siendo muy alarmista y que todo es más sencillo.