1
[%# This file defines a macro, 'log_msg', that you should call to format
2
Subversion log messages.
4
The macro can pass the message through multiple filters to ensure that
5
it is formatted correctly.
7
To override this file, either edit it directly, or (preferred), make
8
a copy of it, and use the 'templatedirs' directive in config.yaml
9
to specify the directory you copied it to. Then edit the copy.
11
Here is the default definition. It converts the message to HTML, and
12
retains the original line breaks.
15
[% MACRO log_msg(text)
16
text | html | html_line_break %]
18
[%# Here is a more complex example. There's the same HTML conversion as
21
* Template::Plugin::Clickable and Template::Plugin::Clickable::Email
22
are used to find URIs and e-mail addresses and make them clickable.
24
* Strings that look like 'r1234' in the log message are converted
25
to links to the 'revision' action for this repository. Note the
26
use of ${c.script} and ${c.repos} to ensure that the correct
29
* Strings that look like 'rt#1234' are converted to links to the
30
relevant RT ticket in the CPAN ticketing system.
32
Comment out the previous definition, and remove the '#' on the first
33
line of this definition to use it.
38
USE click_email = Clickable::Email;
41
replacement = "<a href='${c.script}/${c.repos}/revision?rev=\$1'>r\$1</a>"
45
replacement = '<a href="http://rt.cpan.org/NoAuth/Bug.html?id=$1">rt#$1</a>'
49
text | html | html_line_break | clickable | $click_email | $revision | $rt;
53
[%# You can also define different results per-repository. For example,
54
if you have two repositories that both use 'rt#1234' to refer to tickets,
55
but that use two different RT instances, you might define it like so:
61
replacement = '<a href="/rt1/rt.cgi?id=$1">rt#$1</a>'
66
replacement = '<a href="/rt2/rt.cgi?id=$1">rt#$1</a>'
72
text | html | html_line_break | $rt1;
74
text | html | html_line_break | $rt2;
76
text | html | html_line_break;
b'\\ No newline at end of file'