annotate mercurial-server/resources/buildServerResources/log.template @ 285:aeaf4d594967 Eluru-6.0.x

Use customized xml output from the 'hg log' command Do that to parse commit messages correctly (TW-18036). Also 'hg log' can provide information on changed files, so we will not run a 'hg status' for every found cset, that should improve changes collecting performance. Use custom xml format mainly because of the difference in the author output. Default xml splits the author to the person and the email, while default verbose log uses unsplitted author. It is not clear how to make original author from the person and the email, because author|person is not empty even if there is no person in the ui.username config. Also default xml uses date format rfc3339date, which is harder to parse. root: /home/nd/sandbox/hg-plugin/original/ HG: branch: Eluru-6.0.x HG: committing mercurial-common/mercurial-common.iml mercurial-common/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/command/ChangeSet.java mercurial-common/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/command/CommandUtil.java mercurial-common/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/command/LogCommand.java mercurial-server/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/MercurialVcsSupport.java mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/MercurialVcsSupportTest.java mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/command/LogCommandTest.java mercurial.ipr mercurial.xml mercurial-server/resources/buildServerResources/log.template HG: Press C-c C-c when you are done editing.
author Dmitry Neverov <dmitry.neverov@jetbrains.com>
date Mon, 29 Aug 2011 17:31:31 +0400
parents
children 83aff5760c25
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
285
aeaf4d594967 Use customized xml output from the 'hg log' command
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
1 header = '<?xml version="1.0"?>\n<log>\n'
aeaf4d594967 Use customized xml output from the 'hg log' command
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
2 footer = '</log>\n'
aeaf4d594967 Use customized xml output from the 'hg log' command
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
3
aeaf4d594967 Use customized xml output from the 'hg log' command
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
4 changeset = '<logentry revision="{rev}" node="{node}" shortnode="{node|short}">\n{branches}{tags}{parents}<author original="{author|xmlescape}" email="{author|email|xmlescape}">{author|person|xmlescape}</author>\n<date>{date|date|xmlescape}</date>\n<msg xml:space="preserve">{desc|xmlescape}</msg>\n<paths>\n{file_adds}{file_dels}{file_mods}</paths>\n{file_copies}</logentry>\n'
aeaf4d594967 Use customized xml output from the 'hg log' command
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
5
aeaf4d594967 Use customized xml output from the 'hg log' command
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
6 file_add = '<path action="A">{file_add|xmlescape}</path>\n'
aeaf4d594967 Use customized xml output from the 'hg log' command
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
7 file_mod = '<path action="M">{file_mod|xmlescape}</path>\n'
aeaf4d594967 Use customized xml output from the 'hg log' command
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
8 file_del = '<path action="R">{file_del|xmlescape}</path>\n'
aeaf4d594967 Use customized xml output from the 'hg log' command
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
9
aeaf4d594967 Use customized xml output from the 'hg log' command
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
10 start_file_copies = '<copies>\n'
aeaf4d594967 Use customized xml output from the 'hg log' command
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
11 file_copy = '<copy source="{source|xmlescape}">{name|xmlescape}</copy>\n'
aeaf4d594967 Use customized xml output from the 'hg log' command
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
12 end_file_copies = '</copies>\n'
aeaf4d594967 Use customized xml output from the 'hg log' command
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
13
aeaf4d594967 Use customized xml output from the 'hg log' command
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
14 parent = '<parent revision="{rev}" node="{node}" shortnode="{node|short}"/>\n'
aeaf4d594967 Use customized xml output from the 'hg log' command
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
15 branch = '<branch>{branch|xmlescape}</branch>\n'
aeaf4d594967 Use customized xml output from the 'hg log' command
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
16 tag = '<tag>{tag|xmlescape}</tag>\n'
aeaf4d594967 Use customized xml output from the 'hg log' command
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
17 extra = '<extra key="{key|xmlescape}">{value|xmlescape}</extra>\n'