Differences between revisions 5 and 6
Revision 5 as of 2008-04-06 11:51:36
Size: 826
Editor: abuehl
Comment:
Revision 6 as of 2009-05-19 19:30:55
Size: 828
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 27: Line 27:
See UnderstandingMercurial, ConcatenatingChangesets, 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.

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

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