Lately I've been more and more concerned about the importance of version control systems due to my late work on multiple features at the same time on one of my Evolutionary Algorithm app at $work.
I've been reading some texts about distributed vs centralized version control and the advantages of DVCS seem clear, but not being used to work with other people, nor maintaining various developement branches, I find a bit daunting managing my codes without some reading about DVCS.
Let's do some reading then!
I've briefly skimmed some blogposts and homemade comparisons, and finally I tried to find complete free books.
That's the order I think it's the best to understand pros and cons of one and the other system.
In this first article ( http://importantshock.wordpress.com/2008/08/07/git-vs-mercurial/ ) they explain the main differences between the two.
Fairly the well-known stuff:
git is more flexible,
git is more cumbersome at first.
git is faster than mercurial.
git installs about 150 binaries in your /usr/local/bin
git makes branching cheap
hg is very robust
hg is well documented (better than git)
hg is ready to use
hg is more compact than git
It seems that hg uses the motto "convention over configuration", and git is just the other way.
Here there are a couple of webs that compare one to other in a more procedural way. How git people tend to work and how hg do it.
http://lists.freedesktop.org/archives/cairo/2006-February/006255.html
http://rg03.wordpress.com/2009/04/07/mercurial-vs-git/
And here there are some comparison between workflows in both, git and mercurial. Theese are the key to understand branchy development.
http://www.rockstarprogrammer.org/post/2008/apr/06/differences-between-mercurial-and-git/
http://stevelosh.com/blog/entry/2009/8/30/a-guide-to-branching-in-mercurial/
http://nubyonrails.com/articles/five-features-from-mercurial-that-would-make-git-suck-less
different workflows explained:
http://bazaar-vcs.org/Workflows
Git evangelists && book
http://whygitisbetterthanx.com/ is clearly progit, so it may not be updated respect hg
http://gitready.com/
http://progit.org/book/
Mercurial evangelists && book
http://jrawio.tidalwave.it/development/mercurial+best+practices/
http://video.google.com/videoplay?docid=-7724296011317502612#
http://hgbook.red-bean.com/read/
Yesterday I just finished the 'mercurial definitive guide' book, and theese days I'll take a look at 'pro git', but I think that today, mercurial has the same facilities as git when it comes to branching, and despite not having the staging area, and some other little idiosyncrasies, one can use mercurial with the same workflow as git (one branch for qw/feature bug release experiment/ ). Being able to close branches allows us to use branching instead of cloning , and then end with a update, merge, commit and --close-branch . There's a lot of outdated info about mercurial branching system... you know, teh intertubez is full of moving targets.
All in all, I think I'll keep using hg at $work, and try git here and there on my little github projects.
Next book to finish reading: Effective Perl Programming.
Book I allow myself to start again (and probably won't end): SICP
Suscribirse a:
Enviar comentarios (Atom)
1 comentario:
Do you know http://stevelosh.com/blog/entry/2009/8/30/a-guide-to-branching-in-mercurial/ already? It really covers the current status of branches in mercurial. But expect bookmarks to be pushable in Mercurial 1.5
Publicar un comentario