X-Git-Url: https://git.exim.org/buildfarm-server.git/blobdiff_plain/cf1348db8bac78b578b1b7780978d56f688105b4..a63dde634310b9d7616b324a4fcf327059c9dbd7:/templates/log.tt diff --git a/templates/log.tt b/templates/log.tt index eac3ed4..c5d275a 100644 --- a/templates/log.tt +++ b/templates/log.tt @@ -1,3 +1,10 @@ +[%# + +Copyright (c) 2003-2010, Andrew Dunstan + +See accompanying License file for license details + +-%] [% PERL %] use POSIX qw(ceil); my $lrfactor = 6; @@ -19,13 +26,11 @@ pagebutton = 'none' %] [%- BLOCK gitlog ; - loglines = clog.split('\n'); - firstline = loglines.shift; - commitref = firstline.replace('commit ([0-9A-Fa-f]+)','$1'); -%] -commit [% commitref %] -[% loglines.join("\n") | html %] + commitref = clog.replace('commit ([0-9A-Fa-f]+)(.|\n)*','$1'); + logtail = clog.replace('commit ([0-9A-Fa-f]+)',''); + logtail = logtail.replace('\n',' '); +%][% commitref %][% logtail | html %] [% END -%]

PostgreSQL Build Farm Log

Details for system "[% system %]"[% IF stage != 'OK' %] failure at stage [% stage ; ELSE %], status 'OK'[% END %], snapshot taken [% urldt %]

@@ -83,6 +88,9 @@ commit [% commitref %]
 [% conf | html %]
 
+ + + + [%- ELSE %] -
 not recorded
 
+ [% END -%] + [% IF stage != 'OK' %] + + + [%- ELSE %]
 not recorded
 
+ [% END -%] + [% END %] +

Files changed this run

[%- IF changed_this_run.0 -%]
@@ -90,20 +98,27 @@ commit [% commitref %]
 [% changed.0 ; IF scm == 'cvs'; ' '; changed.1; END %]
 [%- END -%]
 
+[% END %] +
+[% IF changed_this_run_logs.0 %]
Git log
-
-[%- FOREACH clog IN changed_this_run_logs ; PROCESS gitlog -%]
-[%IF not loop.last %]
-===================================================================
-[% END -%]
+
+Change Set for this build
+
+[% FOREACH clog IN changed_this_run_logs ; PROCESS gitlog -%]
 [%- END -%]
-
+ +

Files changed since last success

[%- IF changed_since_success.0 %]
@@ -111,20 +126,29 @@ not recorded
 [% changed.0 ; IF scm == 'cvs'; ' '; changed.1; END %]
 [%- END -%]
 
+[% END %] +
+[% IF changed_since_success_logs.0 %]
Git log
-
-[%- FOREACH clog IN changed_since_success_logs ; PROCESS gitlog -%]
-[%IF not loop.last %]
-===================================================================
-[% END -%]
+
+Change Set prior to this build
+
+Change Set including this build
+
+[% FOREACH clog IN changed_since_success_logs ; PROCESS gitlog -%]
 [%- END -%]
-
+ +

Log

 [% log | html %]