You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Olav Vitters <ol...@bkor.dhs.org> on 2008/01/06 12:41:45 UTC
[PATCH] Allow custom default when mapping (hook script mailer.py)
I have nearly 500 repositories going to one commit mailing list. I'd
like to set a custom reply-to for some of them.
I can sort of achieve this using the following mailer.conf:
[defaults]
for_repos = /svn/(?P<project>.*)
reply_to = %(project)s
[maps]
reply_to = [mailing-lists]
[mailing-lists]
beagle = banshee-devel-list@gnome.org
f-spot = f-spot-list@gnome.org
However, that causes one problem. I don't want a reply-to for
non-matching repositories. I don't see a clean way to do this. Note that
repositories can be added by anyone with an SVN account. Listing every
non-matching repository will be painful. Further, the current list of
mailing lists will likely expand dramatically.
To solve this, I've added a fall back possibility. This allows the
[mailing-lists] section to be as follows:
[mailing-lists]
beagle = banshee-devel-list@gnome.org
f-spot = f-spot-list@gnome.org
_default_ =
Meaning: If it cannot substitute, fall back to the _default_ option. If
that fails, use whatever reply-to was set before (the project name).
See attached for a patch. Comments?
--
Regards,
Olav
Re: [PATCH] Allow custom default when mapping (hook script mailer.py)
Posted by "Hyrum K. Wright" <hy...@mail.utexas.edu>.
Olav Vitters wrote:
> On Sun, Jan 06, 2008 at 01:41:45PM +0100, Olav Vitters wrote:
>> See attached for a patch. Comments?
>
> See attached for a patch against trunk (tested, works).
Has anybody had a chance to review this patch? (It can be found here:
http://svn.haxx.se/dev/archive-2008-01/0088.shtml)
-Hyrum
Re: [PATCH] Allow custom default when mapping (hook script
mailer.py)
Posted by Olav Vitters <ol...@bkor.dhs.org>.
On Sun, Jan 06, 2008 at 01:41:45PM +0100, Olav Vitters wrote:
> See attached for a patch. Comments?
See attached for a patch against trunk (tested, works).
--
Regards,
Olav