[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Allow custom default when mapping (hook script mailer.py)

From: Olav Vitters <olav_at_bkor.dhs.org>
Date: Sun, 6 Jan 2008 13:41:45 +0100

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_at_gnome.org
  f-spot = f-spot-list_at_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_at_gnome.org
  f-spot = f-spot-list_at_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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org

Received on 2008-01-06 13:44:28 CET

This is an archived mail posted to the Subversion Dev mailing list.