##// END OF EJS Templates
graphlog: style with header and footer (issue2395)...
Mads Kiilerich -
r12579:aa1faede default
parent child Browse files
Show More
@@ -229,7 +229,9 def generate(ui, dag, displayer, showpar
229 char = ctx.node() in showparents and '@' or 'o'
229 char = ctx.node() in showparents and '@' or 'o'
230 displayer.show(ctx)
230 displayer.show(ctx)
231 lines = displayer.hunk.pop(rev).split('\n')[:-1]
231 lines = displayer.hunk.pop(rev).split('\n')[:-1]
232 displayer.flush(rev)
232 ascii(ui, state, type, char, lines, edgefn(seen, rev, parents))
233 ascii(ui, state, type, char, lines, edgefn(seen, rev, parents))
234 displayer.close()
233
235
234 def graphlog(ui, repo, path=None, **opts):
236 def graphlog(ui, repo, path=None, **opts):
235 """show revision history alongside an ASCII revision graph
237 """show revision history alongside an ASCII revision graph
@@ -740,6 +740,17 Issue1896: File log with explicit style
740 date: Thu Jan 01 00:00:00 1970 +0000
740 date: Thu Jan 01 00:00:00 1970 +0000
741 summary: one
741 summary: one
742
742
743 Issue2395: glog --style header and footer
744 $ hg glog --style=xml one
745 <?xml version="1.0"?>
746 <log>
747 o <logentry revision="0" node="3d578b4a1f537d5fcf7301bfa9c0b97adfaa6fb1">
748 <author email="test">test</author>
749 <date>1970-01-01T00:00:00+00:00</date>
750 <msg xml:space="preserve">one</msg>
751 </logentry>
752 </log>
753
743 $ cd ..
754 $ cd ..
744
755
745 Incoming and outgoing:
756 Incoming and outgoing:
General Comments 0
You need to be logged in to leave comments. Login now