rasmus Sat, 18 Jul 2009 22:18:28 +0000
URL: http://svn.php.net/viewvc?view=revision&revision=284338
Changed paths:
U SVNROOT/commit-email.php
Log:
Try to be smarter about which bug url to use - Hopefully we will
be down
to a single unified bug system soon
Modified: SVNROOT/commit-email.php
===================================================================
--- SVNROOT/commit-email.php 2009-07-18 21:46:52 UTC (rev 284337)
+++ SVNROOT/commit-email.php 2009-07-18 22:18:28 UTC (rev 284338)
@@ -184,6 +184,11 @@
$boundary = sha1("{$commit_user}{$commit_date}");
$messageid = "{$commit_user}-{$commit_date}-{$REV}-" . mt_rand();
$subject = "svn: " . ($parent_path === '' ? '/' : $parent_path);
+switch (substr(trim($changed_paths[0]),4)) {
+ case 'pear': $bug_url = 'http://pear.php.net/bugs'; break;
+ case 'pecl': $bug_url = 'http://pecl.php.net/bugs'; break;
+ default: $bug_url = 'http://bugs.php.net'; break;
+}
foreach ($changed_paths as $changed_path) {
$changed_path = trim(strstr($changed_path, ' '));
if (substr($changed_path, -1) !== '/') {
@@ -205,7 +210,7 @@
$bugs_body = '';
if ($bugs) {
foreach ($bugs_array[1] as $bug_id) {
- $bugs_body .= " http://bugs.php.net/$bug_id\r\n";
+ $bugs_body .= " $bug_url/$bug_id\r\n";
}
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php