An example of a visual diff program for Mercurial

Talin talin at acm.org
Wed Nov 1 11:38:49 CST 2006


I hacked together a little "visual diff" program for Mercurial. You can 
see a screenshot here:

http://viridia.org/hg/python/hermetic?f=45dbddc4f0aa;file=ViewDiffScreen.png;style=raw

The program is unfinished - the input file being diff'd is currently 
hard-coded into the program. Right now, the project is kind of on hold 
under the Mercurial 3rd-party API comes together, at the moment the 
program is digging into parts of Mercurial where it really shouldn't go.

Anyway, if you want to examine the code, it can be found here:

     http://viridia.org/hg/python/hermetic

I chose WxWidgets as the GUI because it (a) runs on most of the 
significant platforms, and (b) looks pretty on those platforms, and (c) 
has good licensing terms.

BTW, The name "Hermetic" was chosen using the following algorithm:

    Start with "Mercurial".
    Convert adjective to noun.
    Convert Roman god to equivalent Greek god.
    Convert noun to adjective.

(There are other connotations as well - 'Hermetic' can also mean 
'sealed', 'discrete', which is how we want our codelines to be :) Plus 
its a reference to the original French version of Moebius's "The 
Airtight Garage")

-- Talin


More information about the Mercurial mailing list