~ubuntu-branches/ubuntu/trusty/subversion/trusty-proposed

« back to all changes in this revision

Viewing changes to tools/hook-scripts/mailer/mailer.conf.example

  • Committer: Package Import Robot
  • Author(s): Andy Whitcroft
  • Date: 2012-06-21 15:36:36 UTC
  • mfrom: (0.4.13 sid)
  • Revision ID: package-import@ubuntu.com-20120621153636-amqqmuidgwgxz1ly
Tags: 1.7.5-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - Create pot file on build.
  - Build a python-subversion-dbg package.
  - Build-depend on python-dbg.
  - Build-depend on default-jre-headless/-jdk.
  - Do not apply java-build patch.
  - debian/rules: Manually create the doxygen output directory, otherwise
    we get weird build failures when running parallel builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
2
# mailer.conf: example configuration file for mailer.py
3
3
#
4
 
# $Id: mailer.conf.example 866854 2007-09-25 15:15:57Z cmpilato $
 
4
# $Id: mailer.conf.example 885511 2009-11-30 17:30:17Z julianfoad $
5
5
 
6
6
[general]
7
7
 
35
35
# Any sections other than [general], [defaults], [maps] and sections
36
36
# referred to within [maps] are considered to be user-defined groups
37
37
# which override values in the [defaults] section.
38
 
# These groups are selected using the following two options:
 
38
# These groups are selected using the following three options:
39
39
#
40
40
#   for_repos
41
41
#   for_paths
 
42
#   search_logmsg
42
43
#
43
 
# Both options specify a regular expression. The former is matched against
44
 
# the absolute path to the repository the mailer is operating against. The
45
 
# second is matched against *every* path (files and dirs) that was modified
46
 
# during the commit.
 
44
# Each option specifies a regular expression. for_repos is matched
 
45
# against the absolute path to the repository the mailer is operating
 
46
# against. for_paths is matched against *every* path (files and
 
47
# dirs) that was modified during the commit.
47
48
#
48
49
# The options specified in the [defaults] section are always selected. The
49
50
# presence of a non-matching for_repos has no relevance. Note that you may
62
63
# none of the paths, even though its for_paths would have selected some of
63
64
# the paths in the commit.
64
65
#
 
66
# search_logmsg specifies a regular expression to match against the
 
67
# log message.  If the regular expression does not match the log
 
68
# message, the group is not matched; if the regular expression matches
 
69
# once, the group is used.  If there are multiple matches, each
 
70
# successful match generates another group-match (this is useful if
 
71
# "named groups" are used).  If search_logmsg is not used, no log
 
72
# message filtering is performed.
 
73
#
65
74
# Groups are matched in no particular order. Do not depend upon their
66
75
# order within this configuration file. The values from [defaults] will
67
76
# be used if no group is matched or an option in a group does not override
111
120
# If none of the groups match, but a for_paths is present in [defaults],
112
121
# then its extracted names will be available.
113
122
#
 
123
# Further suppose you want to match bug-ids in log messages:
 
124
#
 
125
#   search_logmsg = (?P<bugid>(ProjA|ProjB)#\d)
 
126
#
 
127
# The bugids would be of the form ProjA#123 and ProjB#456.  In this
 
128
# case, each time the regular expression matches, another match group
 
129
# will be generated.  Thus, if you use:
 
130
#
 
131
#   commit_subject_prefix = %(bugid)s:
 
132
#
 
133
# Then, a log message such as "Fixes ProjA#123 and ProjB#234" would
 
134
# match both bug-ids, and two emails would be generated - one with
 
135
# subject "ProjA#123: <...>" and "ProjB#234: <...>".
 
136
#
114
137
# Note that each unique set of names for substitution will generate an
115
138
# email. In the above example, if a commit modified files in all three
116
139
# client subdirectories, then an email will be sent to all three commits@
329
352
# for_repos = /home/(?P<who>[^/]*)/repos
330
353
# to_addr = %(who)s@example.com
331
354
#
 
355
# [issuetracker]
 
356
# search_logmsg = (?P<bugid>(?P<project>projecta|projectb|projectc)#\d+)
 
357
# # (or, use a mapping if the bug-id to email address is not this trivial)
 
358
# to_addr = %(project)s-tracker@example.com
 
359
# commit_subject_prefix = %(bugid)s:
 
360
# propchange_subject_prefix = %(bugid)s:
 
361