Size: 380
Comment:
|
Size: 863
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
= Drawing Graphs = |
|
Line 15: | Line 17: |
{{{#!dot | { { {#!dot |
Line 22: | Line 24: |
} } } | |
Line 23: | Line 26: |
}}} | 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 [[http://www.graphviz.org/Gallery.php|"Graphviz Gallery"]] for examples. See http://www.graphviz.org/doc/info/attrs.html for additional attributes. ---- 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.