annotate mercurial/templates/map-cmdline.xml @ 10153:000546ec7ced

Added XML output for hg log The XML format is based on the one used by Subversion. Currently the closing "</log>" tag is not written, since cmdutil.py does not support the "footer" template variable.
author Robert Bachmann <rbachm@gmail.com>
date Mon, 28 Dec 2009 16:48:57 +0100
parents
children 182416227722
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10153
000546ec7ced Added XML output for hg log
Robert Bachmann <rbachm@gmail.com>
parents:
diff changeset
1 header = '<?xml version="1.0"?>\n<log>\n'
000546ec7ced Added XML output for hg log
Robert Bachmann <rbachm@gmail.com>
parents:
diff changeset
2 footer = '</log>\n'
000546ec7ced Added XML output for hg log
Robert Bachmann <rbachm@gmail.com>
parents:
diff changeset
3
000546ec7ced Added XML output for hg log
Robert Bachmann <rbachm@gmail.com>
parents:
diff changeset
4 changeset = '<logentry revision="{rev}" node="{node}">\n{branches}{tags}{parents}<author email="{author|email|xmlescape}">{author|person|xmlescape}</author>\n<date>{date|rfc3339date}</date>\n<msg xml:space="preserve">{desc|xmlescape}</msg>\n</logentry>\n'
000546ec7ced Added XML output for hg log
Robert Bachmann <rbachm@gmail.com>
parents:
diff changeset
5 changeset_verbose = '<logentry revision="{rev}" node="{node}">\n{branches}{tags}{parents}<author email="{author|email|xmlescape}">{author|person|xmlescape}</author>\n<date>{date|rfc3339date}</date>\n<msg xml:space="preserve">{desc|xmlescape}</msg>\n<paths>\n{file_adds}{file_dels}{file_mods}</paths>\n{file_copies}</logentry>\n'
000546ec7ced Added XML output for hg log
Robert Bachmann <rbachm@gmail.com>
parents:
diff changeset
6
000546ec7ced Added XML output for hg log
Robert Bachmann <rbachm@gmail.com>
parents:
diff changeset
7 file_add = '<path action="A">{file_add|xmlescape}</path>\n'
000546ec7ced Added XML output for hg log
Robert Bachmann <rbachm@gmail.com>
parents:
diff changeset
8 file_mod = '<path action="M">{file_mod|xmlescape}</path>\n'
000546ec7ced Added XML output for hg log
Robert Bachmann <rbachm@gmail.com>
parents:
diff changeset
9 file_del = '<path action="R">{file_del|xmlescape}</path>\n'
000546ec7ced Added XML output for hg log
Robert Bachmann <rbachm@gmail.com>
parents:
diff changeset
10
000546ec7ced Added XML output for hg log
Robert Bachmann <rbachm@gmail.com>
parents:
diff changeset
11 start_file_copies = '<copies>\n'
000546ec7ced Added XML output for hg log
Robert Bachmann <rbachm@gmail.com>
parents:
diff changeset
12 file_copy = '<copy source="{source|xmlescape}">{name|xmlescape}</copy>\n'
000546ec7ced Added XML output for hg log
Robert Bachmann <rbachm@gmail.com>
parents:
diff changeset
13 end_file_copies = '</copies>\n'
000546ec7ced Added XML output for hg log
Robert Bachmann <rbachm@gmail.com>
parents:
diff changeset
14
000546ec7ced Added XML output for hg log
Robert Bachmann <rbachm@gmail.com>
parents:
diff changeset
15 parent = '<parent revision="{rev}" node="{node}" />\n'
000546ec7ced Added XML output for hg log
Robert Bachmann <rbachm@gmail.com>
parents:
diff changeset
16 branch = '<branch>{branch|xmlescape}</branch>\n'
000546ec7ced Added XML output for hg log
Robert Bachmann <rbachm@gmail.com>
parents:
diff changeset
17 tag = '<tag>{tag|xmlescape}</tag>\n'