sapling/mercurial/hgweb
Paul Boddie 5b2a1dc5f5 hgweb: make graph data suitable for template usage
Previously, graph data has been encoded for processing done by
JavaScript code run in the browser, employing simple structures
with implicit member positions. This patch modifies the graph
command to also produce data employing a dictionary-based
structure suitable for use with the templating mechanism, thus
permitting other ways of presenting repository graphs using that
mechanism.

In order to test these changes, the raw theme has been modified
to include templates for graph nodes and edges. In a similar
fashion, themes could employ technologies such as SVG that lend
themselves to templating to produce the graph display. This patch
makes use of a much simpler output representation than SVG in
order to maintain clarity.
2012-05-21 00:20:05 +02:00
..
__init__.py hgweb: make hgweb.hgweb a unified interface to hgweb/hgwebdir 2010-04-26 11:03:40 -05:00
common.py cleanup: "raise SomeException()" -> "raise SomeException" 2012-05-12 16:00:58 +02:00
hgweb_mod.py hgweb: use ui.nontty to disable all cooked I/O 2012-05-20 14:37:22 -05:00
hgwebdir_mod.py hgweb: use ui.nontty to disable all cooked I/O 2012-05-20 14:37:22 -05:00
protocol.py wireproto: add out-of-band error class to allow remote repo to report errors 2011-08-02 15:21:10 -04:00
request.py globally: use safehasattr(x, '__iter__') instead of hasattr(x, '__iter__') 2011-07-25 15:30:19 -05:00
server.py pyflakes: clean up some import noise 2011-10-11 23:16:05 -05:00
webcommands.py hgweb: make graph data suitable for template usage 2012-05-21 00:20:05 +02:00
webutil.py localrepo: add branchtip() method for faster single-branch lookups 2012-05-13 14:04:04 +02:00
wsgicgi.py wsgicgi: use getattr instead of hasattr 2011-07-25 15:38:10 -05:00