Differences between revisions 4 and 7 (spanning 3 versions)
Revision 4 as of 2008-03-30 17:23:55
Size: 814
Editor: abuehl
Comment: +cat
Revision 7 as of 2010-10-15 05:09:46
Size: 863
Editor: mpm
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Drawing Graphs =
Line 27: Line 29:
See UnderstandingMercurial, TipsAndTricks, and [http://www.graphviz.org/Gallery.php "Graphviz Gallery"] for examples. See UnderstandingMercurial, ConcatenatingChangesets, and [[http://www.graphviz.org/Gallery.php|"Graphviz Gallery"]] for examples.
Line 30: Line 32:
Line 31: Line 34:
CategoryHowTo CategoryHowTo CategoryWiki

Drawing Graphs

The Mercurial wiki allows easily adding graph diagrams to pages. To draw a graph like this:

add a section like this:

{ { {#!dot
    digraph G {
      rankdir=LR
      node [shape=box]
      a -> b -> c -> d -> e
      d->f
    }
} } }

For consistency, use [shape=box] for Mercurial revisions, [shape=ellipse] for the working directory, and rankdir=LR (left-to-right) or rankdir=BT (bottom-to-top) for revision graphs.

See UnderstandingMercurial, ConcatenatingChangesets, and "Graphviz Gallery" for examples.

See http://www.graphviz.org/doc/info/attrs.html for additional attributes.


CategoryHowTo CategoryWiki

DrawingGraphs (last edited 2015-10-20 14:56:52 by Rain)