Mercurial > hg > mercurial
comparison 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 |
comparison
equal
deleted
inserted
replaced
284:f0358b0d9b58 | 285:aeaf4d594967 |
---|---|
1 header = '<?xml version="1.0"?>\n<log>\n' | |
2 footer = '</log>\n' | |
3 | |
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' | |
5 | |
6 file_add = '<path action="A">{file_add|xmlescape}</path>\n' | |
7 file_mod = '<path action="M">{file_mod|xmlescape}</path>\n' | |
8 file_del = '<path action="R">{file_del|xmlescape}</path>\n' | |
9 | |
10 start_file_copies = '<copies>\n' | |
11 file_copy = '<copy source="{source|xmlescape}">{name|xmlescape}</copy>\n' | |
12 end_file_copies = '</copies>\n' | |
13 | |
14 parent = '<parent revision="{rev}" node="{node}" shortnode="{node|short}"/>\n' | |
15 branch = '<branch>{branch|xmlescape}</branch>\n' | |
16 tag = '<tag>{tag|xmlescape}</tag>\n' | |
17 extra = '<extra key="{key|xmlescape}">{value|xmlescape}</extra>\n' |