philip                                   Mon, 30 Nov 2009 19:24:54 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=291518

Log:
- This deals with an accidental commit I made 30 minutes ago (thanks to Pierre 
for spotting this)
- This check ensures the commit mail size doesn't exceed our mailing list 
maximum
- A check for diff size already exists, while this now also checks path size 
(so when a ton of files are touched)
- Updated code to use 262144, like the diff check does, as an excuse to make 
this commit

Changed paths:
    U   SVNROOT/commit-email.php

Modified: SVNROOT/commit-email.php
===================================================================
--- SVNROOT/commit-email.php    2009-11-30 19:13:50 UTC (rev 291517)
+++ SVNROOT/commit-email.php    2009-11-30 19:24:54 UTC (rev 291518)
@@ -172,7 +172,8 @@
 $readable_path_list = "    " . implode(PHP_EOL . "    ", 
$commit_info['raw_changed_paths']);
 $nspaces = str_repeat(" ", max(1, 72 - strlen($commit_info['author']) - 
strlen($email_date)));

-if ((strlen($readable_path_list) + $diffs_length) > 250000) {
+// Help ensure all commits make it to the mailing lists, which have size 
restrictions
+if ((strlen($readable_path_list) + $diffs_length) > 262144) {
     $readable_path_list = '<changed paths exceeded maximum size>';
 }


-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to