cvs: SVNROOT / commit-email.php
| From: | Gwynne Raskind | Date: | Sat, 20 Dec 2008 19:31:22 +0000 |
| Subject: | cvs: SVNROOT / commit-email.php | ||
| Groups: | svn.migration | ||
| Request: | Send a blank email to svn-migration+get-224@lists.php.net to get a copy of this message | ||
gwynne Sat Dec 20 19:31:22 2008 UTC
Modified files:
/SVNROOT commit-email.php
Log:
Instead of a match-all expression, let's go with a fallback
http://cvs.php.net/viewvc.cgi/SVNROOT/commit-email.php?r1=1.10&r2=1.11&diff_format=u
Index: SVNROOT/commit-email.php
diff -u SVNROOT/commit-email.php:1.10 SVNROOT/commit-email.php:1.11
--- SVNROOT/commit-email.php:1.10 Sat Dec 20 19:27:54 2008
+++ SVNROOT/commit-email.php Sat Dec 20 19:31:21 2008
@@ -7,7 +7,7 @@
//
-----------------------------------------------------------------------------------------------------------------------------
// Constants
-$version = substr('$Revision: 1.10 $', strlen('$Revision: '), -2);
+$version = substr('$Revision: 1.11 $', strlen('$Revision: '), -2);
$smtp_server = '127.0.0.1';
$commit_email_list = array(
// FastCGI ISAPI
@@ -92,9 +92,8 @@
// Internals
'|^systems|' => array('systems@php.net'),
'|^SVNROOT|' => array('svn-migration@lists.php.net'),
-
- '|^.|' => array('php-cvs@lists.php.net')
);
+$fallback_addresses = array('php-cvs@lists.php.net');
//
-----------------------------------------------------------------------------------------------------------------------------
// Get info from commit
@@ -130,6 +129,9 @@
$parent_path = $changed_path;
}
}
+if (count($emails_to) == 0) {
+ $emails_to = $fallback_addresses;
+}
$emails_to = array_unique($emails_to);
//
-----------------------------------------------------------------------------------------------------------------------------