svn: /web/php-rmtools/trunk/client/ include/Tools.php script/snap.php
| From: | Pierre Joye | Date: | Mon, 02 May 2011 11:58:59 +0000 |
| Subject: | svn: /web/php-rmtools/trunk/client/ include/Tools.php script/snap.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-10940@lists.php.net to get a copy of this message | ||
pajoye Mon, 02 May 2011 11:58:59 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=310705
Log:
- add branch name to the notification mail
Changed paths:
U web/php-rmtools/trunk/client/include/Tools.php
U web/php-rmtools/trunk/client/script/snap.php
Modified: web/php-rmtools/trunk/client/include/Tools.php
===================================================================
--- web/php-rmtools/trunk/client/include/Tools.php 2011-05-02 10:51:35 UTC (rev 310704)
+++ web/php-rmtools/trunk/client/include/Tools.php 2011-05-02 11:58:59 UTC (rev 310705)
@@ -217,7 +217,7 @@
//\curl_multi_close($mh);
}
-function send_error_notification($build_entries, $previous_revision, $current_revision, $url_log)
+function send_error_notification($branch_name, $build_entries, $previous_revision,
$current_revision, $url_log)
{
$errors = '';
$params = NULL;
@@ -226,7 +226,7 @@
'X-Mailer: rmtools/php.net';
foreach ($build_entries as $build_name => $entries) {
- $errors .= 'Build ' . $build_name . ":\n";
+ $errors .= $branch_name . ', build ' . $build_name . ":\n";
foreach ($entries as $e) {
$errors .= implode(', ', $e) . "\n";
}
Modified: web/php-rmtools/trunk/client/script/snap.php
===================================================================
--- web/php-rmtools/trunk/client/script/snap.php 2011-05-02 10:51:35 UTC (rev 310704)
+++ web/php-rmtools/trunk/client/script/snap.php 2011-05-02 11:58:59 UTC (rev 310705)
@@ -128,7 +128,7 @@
rm\upload_file($branch->db_path, $branch_name . '/' . basename($branch->db_path));
if ($has_build_errors) {
- rm\send_error_notification($build_errors, $branch->getPreviousRevision(), $last_rev, 'http://windows.php.net/downloads/snaps/'
. $branch_name . '/r' . $last_rev);
+ rm\send_error_notification($branch_name, $build_errors, $branch->getPreviousRevision(),
$last_rev, 'http://windows.php.net/downloads/snaps/'
. $branch_name . '/r' . $last_rev);
} else {
/* if no error, let update the snapshot page */
rm\update_snapshot_page();