Justin Vallon <justin.vallon@deshaw.com>


Patch
r885511

r885511 | julianfoad | 2009-11-30 17:30:17 +0000 (Mon, 30 Nov 2009)

Extend "mailer.py" with an option "search_logmsg=REGEXP" to allow filtering
based on matching expressions in the log message such as bug id's.

Patch by: Justin Vallon <justin.vallon{_AT_}deshaw.com>

* tools/hook-scripts/mailer/mailer.conf.example
  Add documentation and an example of the new configuration options.

* tools/hook-scripts/mailer/mailer.py
  (Commit): Pass the log message to the which_groups() call.
  (PropChange, Lock): Pass no log message to the which_groups() call.
  (Config): Parse the new option and extend the which_groups() function
    to include groups specified through matching the log message.

* tools/hook-scripts/mailer/tests/mailer.conf
  (bugtracker): New section with the new configuration options.

* tools/hook-scripts/mailer/tests/mailer-init.sh
  Put some example bug id's into some of the commit messages.

* tools/hook-scripts/mailer/tests/mailer-t1.output
  Adjust for the additions and changes to the expected output.