Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting to know internals of Mercurial, Bazaar etc?

I understand that reading the source code is an option, given that these systems are open source, but I am looking for something on the lines of Scott Chacon's excellent writeup on Git Internals.

What Scott's writeup provides is a brief hands on introduction about how Git internally store things like Blobs, Trees and Commits and how all of these things are linked together to form your revision history. He demonstrates the whole idea with the aid of little bits of ruby code, that you can run on interactive ruby console to handcraft a working git revision history.

Is there a similar article or tutorial available for other popular version control systems like Mercurial and Bazaar

like image 685
Tahir Akhtar Avatar asked Jul 24 '11 10:07

Tahir Akhtar


3 Answers

For Mercurial, there's a couple of good resources to understand how it works:

  • Talk by Matt Mackall: Towards A Better SCM: Revlogs and Mercurial (slides, paper)
  • Chapter 4. Behind the scenes of the Mercurial book (online version)
  • The developer section of the wiki
like image 80
tonfa Avatar answered Nov 19 '22 16:11

tonfa


It looks like http://doc.bazaar.canonical.com/bzr.dev/developers/overview.html is a good place to start with Bazaar.

like image 35
Nigel Thorne Avatar answered Nov 19 '22 16:11

Nigel Thorne


There are a bunch of text files related to Mercurial internals here. revlogs.txt is especially useful.

like image 27
tav Avatar answered Nov 19 '22 16:11

tav