Using graphviz

Eric M. Hopper hopper at omnifarious.org
Tue Sep 6 12:08:02 CDT 2005


On Tue, 2005-09-06 at 09:33 -0700, Matt Mackall wrote:
> On Mon, Sep 05, 2005 at 10:07:55PM -0700, Eric M. Hopper wrote:
> > Perhaps this has come up before, but I wrote a small hack to the log
> > command that causes it to output data suitable for feeding into 'dot'
> > from the graphviz package.  This is kind of neat to see as it will
> > graphically represent all the branches and stuff for you, but it outputs
> > files that use up too much memory in most viewing programs, even if
> > you're just looking at the past few hundred history elements.
> 
> There's actually an existing command for this:
> 
>  hg debugindexdot .hg/00changelog.i
> 
> It has the advantage that it can show you the graph of the changelog,
> the manifest, or individual files.

Maybe the command shouldn't be a debug command, and should use a
command-line syntax more in keeping with everything else.  Because I
think the graphviz history displays are pretty interesting to look at,
and impart useful information as well.  

For example, I got a picture of who the main contributors were and what
they'd done, when it would've taken me a few weeks of being on the
mailing list and reading messages to divine that otherwise.

Have fun (if at all possible),
-- 
The best we can hope for concerning the people at large is that they
be properly armed.  -- Alexander Hamilton
-- Eric Hopper (hopper at omnifarious.org  http://www.omnifarious.org/~hopper) --
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: This is a digitally signed message part
Url : http://www.selenic.com/pipermail/mercurial/attachments/20050906/94a56f3d/attachment.pgp


More information about the Mercurial mailing list