Index: trunk/extensions/CodeReview/CodeReview.php |
— | — | @@ -173,6 +173,15 @@ |
174 | 174 | // Name to use in the To: header of e-mails to the list. Ignored if $wgCodeReviewCommentWatcherEmail isn't set |
175 | 175 | $wgCodeReviewCommentWatcherName = "CodeReview comments list"; |
176 | 176 | |
| 177 | +// Set this flag to true if you want to disable the automatic notifications to all |
| 178 | +// watchers of a specific revision, when a follow-up to that revision is committed. |
| 179 | +// Useful for small repos when everyone is reading the commit e-mails anyway, |
| 180 | +// or if you have multiple repositories which refer to one another, which result |
| 181 | +// in an unreasonable level of false positives. |
| 182 | +// Note that the new revision will still be marked as a follow-up - this setting |
| 183 | +// just stops the e-mail being sent. |
| 184 | +$wgCodeReviewDisableFollowUpNotification = false; |
| 185 | + |
177 | 186 | // What images can be used for client-side side-by-side comparisons? |
178 | 187 | $wgCodeReviewImgRegex = '/\.(png|jpg|jpeg|gif)$/i'; |
179 | 188 | |
Index: trunk/extensions/CodeReview/backend/CodeRevision.php |
— | — | @@ -440,9 +440,9 @@ |
441 | 441 | $this->addReferencesTo( $affectedRevs ); |
442 | 442 | } |
443 | 443 | |
444 | | - global $wgEnableEmail; |
| 444 | + global $wgEnableEmail, $wgCodeReviewDisableFollowUpNotification; |
445 | 445 | // Email the authors of revisions that this follows up on |
446 | | - if ( $wgEnableEmail && $newRevision && count( $affectedRevs ) > 0 ) { |
| 446 | + if ( $wgEnableEmail && !$wgCodeReviewDisableFollowUpNotification && $newRevision && count( $affectedRevs ) > 0 ) { |
447 | 447 | // Get committer wiki user name, or repo name at least |
448 | 448 | $commitAuthor = $this->getWikiUser(); |
449 | 449 | |