Hi all,
let me describe the situation: I have 1 repository for projects with a lot
of sub-projects and I'd like to be able to show the sub-project name in
the subject of the commit mails. But I get error messages if I try to use the
substitution functionality from mailer.conf :(
-> Projectspath: /subversion/projects/projects/<subprojects>
-> hooks/post-commit:
/subversion/admin/projects-mailer.py commit "$REPOS" "$REV"
subversion/admin/projects-mailer.conf >> $REPOS/hooks/debug.log 2>&1 &
-> admin/projects-mailer.conf:
[projects]
for_repos = /subversion/projects/projects
for_path = (?P<PROJECT>[^/]*)($|/)
commit_subject_prefix = [%(PROJECT)s]
-> hooks/debug.log:
Traceback (most recent call last):
File "/subversion/admin/projects-mailer.py", line 754, in ?
author, propname)
File "/usr/local/lib/svn-python/svn/core.py", line 33, in run_app
return apply(func, (pool,) + args, kw)
File "/subversion/admin/projects-mailer.py", line 49, in main
messenger.generate()
File "/subversion/admin/projects-mailer.py", line 318, in generate
self.output.start(group, params)
File "/subversion/admin/projects-mailer.py", line 174, in start
self.write(self.mail_headers(group, params))
File "/subversion/admin/projects-mailer.py", line 67, in mail_headers
prefix = self.cfg.get(self.prefix_param, group, params)
File "/subversion/admin/projects-mailer.py", line 631, in get
return getattr(sub, option) % params
KeyError: PROJECT
I use svn, version 1.1.0 (r11180) with the mailer.py included in this
release. I tried also the mailer.py from 1.0.1 and the latest
trunk-version without success.
Thanks in advance
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 7 12:21:19 2004