diff hgext/graphlog.py @ 12579:aa1faedeac5a

graphlog: style with header and footer (issue2395) The glog command didn't emit header and footer from the style, as demonstrated by "hg glog --style xml". Asciiart combined with xml markup hardly makes sense, but header and footer might however be useful for adding for example html pre tags around the graph.
author Mads Kiilerich <mads@kiilerich.com>
date Tue, 28 Sep 2010 02:58:00 +0200
parents 13921a1af02b
children 33e1fd2aeb3c
line wrap: on
line diff
--- a/hgext/graphlog.py	Tue Sep 28 02:57:59 2010 +0200
+++ b/hgext/graphlog.py	Tue Sep 28 02:58:00 2010 +0200
@@ -229,7 +229,9 @@
         char = ctx.node() in showparents and '@' or 'o'
         displayer.show(ctx)
         lines = displayer.hunk.pop(rev).split('\n')[:-1]
+        displayer.flush(rev)
         ascii(ui, state, type, char, lines, edgefn(seen, rev, parents))
+    displayer.close()
 
 def graphlog(ui, repo, path=None, **opts):
     """show revision history alongside an ASCII revision graph