From: Gervase Markham Date: Thu, 27 Jan 2011 10:38:04 +0000 (+0000) Subject: Add diffs parameter to bugmail_recipients hook. r=mkanat. X-Git-Tag: bugzilla-4.0~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=707132e9e807863aff3c72f86ce0fb571d439dd9;p=thirdparty%2Fbugzilla.git Add diffs parameter to bugmail_recipients hook. r=mkanat. https://bugzilla.mozilla.org/show_bug.cgi?id=616422 --- diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index 78a3970d67..d12836273e 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -343,7 +343,8 @@ sub Send { } Bugzilla::Hook::process('bugmail_recipients', - { bug => $bug, recipients => \%recipients }); + { bug => $bug, recipients => \%recipients, + diffs => $diffs }); # Find all those user-watching anyone on the current list, who is not # on it already themselves. diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm index f6fff241a5..a08e160a89 100644 --- a/Bugzilla/Hook.pm +++ b/Bugzilla/Hook.pm @@ -494,6 +494,16 @@ as though he were on the CC list: (We use C<+> in front of C so that Perl interprets it as a constant instead of as a string.) +=item C + +This is a list of hashes, each hash representing a change to the bug. Each +hash has the following members: C, C, C, C +and C (a L). If appropriate, there will also be +C or C; if either is present, there will be +C. See C<_get_diffs> in F to see exactly how +it is populated. Warning: the format and existence of the "diffs" parameter +is subject to change in future releases of Bugzilla. + =back