[PHP-CVS] svn: /SVNROOT/ pre-commit
tyrael Sun, 19 May 2013 08:32:25 + Revision: http://svn.php.net/viewvc?view=revision&revision=330285 Log: allowing some people to commit to already migrated dirs Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2013-05-19 08:09:14 UTC (rev 330284) +++ SVNROOT/pre-commit 2013-05-19 08:32:25 UTC (rev 330285) @@ -2,6 +2,7 @@ http://git.php.net\n";); +if (!in_array($commit_info['author'], $migrate_admins)) { +foreach($migrated_repositories as $reponame) { +if (strncmp($changed_path, $reponame, strlen($reponame)) === 0) { +fail("This module now uses git. http://git.php.net\n";); +} } } + /* Tags checks disabled. Too many special cases, not enough people making this mistake to make the extra work worth it. -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /SVNROOT/ pre-commit
dsp Tue, 20 Mar 2012 19:11:23 + Revision: http://svn.php.net/viewvc?view=revision&revision=324406 Log: Migrate php-gtk Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2012-03-20 18:26:57 UTC (rev 324405) +++ SVNROOT/pre-commit 2012-03-20 19:11:23 UTC (rev 324406) @@ -1,7 +1,7 @@ #!/usr/local/bin/php -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /SVNROOT/ pre-commit
dsp Sun, 18 Mar 2012 21:28:35 + Revision: http://svn.php.net/viewvc?view=revision&revision=324342 Log: Close php-src Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2012-03-18 19:22:01 UTC (rev 324341) +++ SVNROOT/pre-commit 2012-03-18 21:28:35 UTC (rev 324342) @@ -1,7 +1,7 @@ #!/usr/local/bin/php -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /SVNROOT/ pre-commit
dsp Wed, 25 Jan 2012 21:34:03 + Revision: http://svn.php.net/viewvc?view=revision&revision=322760 Log: Close web/. Everything is now in git. Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2012-01-25 19:47:35 UTC (rev 322759) +++ SVNROOT/pre-commit 2012-01-25 21:34:03 UTC (rev 322760) @@ -1,10 +1,7 @@ #!/usr/local/bin/php -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /SVNROOT/ pre-commit
dsp Wed, 25 Jan 2012 14:25:44 + Revision: http://svn.php.net/viewvc?view=revision&revision=322735 Log: Move web/doc to git Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2012-01-25 14:01:35 UTC (rev 322734) +++ SVNROOT/pre-commit 2012-01-25 14:25:44 UTC (rev 322735) @@ -3,8 +3,8 @@ $migrated_repositories = array('systems/', 'web/php-bugs/', 'web/php-gcov/', 'web/php-master/', 'web/php-news/', 'web/qa/', 'web/php-people/', 'web/php-rmtools/', -'web/pres2', 'web/presentations/', 'web/php-wiki/', 'web/php/', 'web/php-windows/', -'web/pecl'); +'web/pres2/', 'web/presentations/', 'web/php-wiki/', 'web/php/', 'web/php-windows/', +'web/pecl/', 'web/doc/'); // - // Include require dirname(__FILE__) . '/hook-common.inc.php'; -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /SVNROOT/ pre-commit
dsp Tue, 24 Jan 2012 23:21:19 + Revision: http://svn.php.net/viewvc?view=revision&revision=322702 Log: Move pecl to git Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2012-01-24 22:48:25 UTC (rev 322701) +++ SVNROOT/pre-commit 2012-01-24 23:21:19 UTC (rev 322702) @@ -3,7 +3,8 @@ $migrated_repositories = array('systems/', 'web/php-bugs/', 'web/php-gcov/', 'web/php-master/', 'web/php-news/', 'web/qa/', 'web/php-people/', 'web/php-rmtools/', -'web/pres2', 'web/presentations/', 'web/php-wiki/', 'web/php/', 'web/php-windows/'); +'web/pres2', 'web/presentations/', 'web/php-wiki/', 'web/php/', 'web/php-windows/', +'web/pecl'); // - // Include require dirname(__FILE__) . '/hook-common.inc.php'; -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /SVNROOT/ pre-commit
dsp Tue, 24 Jan 2012 21:51:34 + Revision: http://svn.php.net/viewvc?view=revision&revision=322697 Log: Move php-windows to git Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2012-01-24 21:44:41 UTC (rev 322696) +++ SVNROOT/pre-commit 2012-01-24 21:51:34 UTC (rev 322697) @@ -3,7 +3,7 @@ $migrated_repositories = array('systems/', 'web/php-bugs/', 'web/php-gcov/', 'web/php-master/', 'web/php-news/', 'web/qa/', 'web/php-people/', 'web/php-rmtools/', -'web/pres2', 'web/presentations/', 'web/php-wiki/', 'web/php/'); +'web/pres2', 'web/presentations/', 'web/php-wiki/', 'web/php/', 'web/php-windows/'); // - // Include require dirname(__FILE__) . '/hook-common.inc.php'; -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /SVNROOT/ pre-commit
dsp Tue, 24 Jan 2012 21:44:41 + Revision: http://svn.php.net/viewvc?view=revision&revision=322696 Log: Disable commits to archived again Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2012-01-24 21:40:01 UTC (rev 322695) +++ SVNROOT/pre-commit 2012-01-24 21:44:41 UTC (rev 322696) @@ -34,9 +34,9 @@ // - // Check for denied commits foreach ($commit_info['changed_paths'] as $changed_path => $path_actions) { -//if (strncmp($changed_path, "archived/", strlen("archived/")) === 0) { -//fail("Commits to archived modules are not allowed.\n"); -//} +if (strncmp($changed_path, "archived/", strlen("archived/")) === 0) { +fail("Commits to archived modules are not allowed.\n"); +} foreach($migrated_repositories as $reponame) { if (strncmp($changed_path, $reponame, strlen($reponame)) === 0) { -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /SVNROOT/ pre-commit
dsp Tue, 24 Jan 2012 21:37:32 + Revision: http://svn.php.net/viewvc?view=revision&revision=322694 Log: Temporarily enable commits to archived Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2012-01-24 20:21:07 UTC (rev 322693) +++ SVNROOT/pre-commit 2012-01-24 21:37:32 UTC (rev 322694) @@ -34,9 +34,9 @@ // - // Check for denied commits foreach ($commit_info['changed_paths'] as $changed_path => $path_actions) { -if (strncmp($changed_path, "archived/", strlen("archived/")) === 0) { -fail("Commits to archived modules are not allowed.\n"); -} +//if (strncmp($changed_path, "archived/", strlen("archived/")) === 0) { +//fail("Commits to archived modules are not allowed.\n"); +//} foreach($migrated_repositories as $reponame) { if (strncmp($changed_path, $reponame, strlen($reponame)) === 0) { -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /SVNROOT/ pre-commit
dsp Sat, 21 Jan 2012 05:23:43 + Revision: http://svn.php.net/viewvc?view=revision&revision=322534 Log: Move wiki to git Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2012-01-21 03:38:11 UTC (rev 322533) +++ SVNROOT/pre-commit 2012-01-21 05:23:43 UTC (rev 322534) @@ -3,7 +3,7 @@ $migrated_repositories = array('systems/', 'web/php-bugs/', 'web/php-gcov/', 'web/php-master/', 'web/php-news/', 'web/qa/', 'web/php-people/', 'web/php-rmtools/', -'web/pres2', 'web/presentations/'); +'web/pres2', 'web/presentations/', 'web/php-wiki/'); // - // Include require dirname(__FILE__) . '/hook-common.inc.php'; -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /SVNROOT/ pre-commit
dsp Fri, 20 Jan 2012 21:53:04 + Revision: http://svn.php.net/viewvc?view=revision&revision=322528 Log: Disable commits to archived/ again Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2012-01-20 21:52:22 UTC (rev 322527) +++ SVNROOT/pre-commit 2012-01-20 21:53:04 UTC (rev 322528) @@ -34,9 +34,9 @@ // - // Check for denied commits foreach ($commit_info['changed_paths'] as $changed_path => $path_actions) { -// if (strncmp($changed_path, "archived/", strlen("archived/")) === 0) { -// fail("Commits to archived modules are not allowed.\n"); -// } +if (strncmp($changed_path, "archived/", strlen("archived/")) === 0) { +fail("Commits to archived modules are not allowed.\n"); +} foreach($migrated_repositories as $reponame) { if (strncmp($changed_path, $reponame, strlen($reponame)) === 0) { -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /SVNROOT/ pre-commit
dsp Fri, 20 Jan 2012 21:49:52 + Revision: http://svn.php.net/viewvc?view=revision&revision=322524 Log: Temporarily enable commits to archived Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2012-01-20 21:32:08 UTC (rev 322523) +++ SVNROOT/pre-commit 2012-01-20 21:49:52 UTC (rev 322524) @@ -34,9 +34,9 @@ // - // Check for denied commits foreach ($commit_info['changed_paths'] as $changed_path => $path_actions) { -if (strncmp($changed_path, "archived/", strlen("archived/")) === 0) { -fail("Commits to archived modules are not allowed.\n"); -} +// if (strncmp($changed_path, "archived/", strlen("archived/")) === 0) { +// fail("Commits to archived modules are not allowed.\n"); +// } foreach($migrated_repositories as $reponame) { if (strncmp($changed_path, $reponame, strlen($reponame)) === 0) { -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /SVNROOT/ pre-commit
dsp Fri, 20 Jan 2012 21:04:24 + Revision: http://svn.php.net/viewvc?view=revision&revision=322519 Log: Move pres2 and presentations to git Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2012-01-20 20:55:25 UTC (rev 322518) +++ SVNROOT/pre-commit 2012-01-20 21:04:24 UTC (rev 322519) @@ -2,7 +2,8 @@ -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /SVNROOT/ pre-commit
dsp Fri, 20 Jan 2012 20:17:25 + Revision: http://svn.php.net/viewvc?view=revision&revision=322515 Log: Correct path Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2012-01-20 20:10:15 UTC (rev 322514) +++ SVNROOT/pre-commit 2012-01-20 20:17:25 UTC (rev 322515) @@ -2,7 +2,7 @@ -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /SVNROOT/ pre-commit
dsp Fri, 20 Jan 2012 19:53:28 + Revision: http://svn.php.net/viewvc?view=revision&revision=322511 Log: Move rmtools and people to git Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2012-01-20 19:42:45 UTC (rev 322510) +++ SVNROOT/pre-commit 2012-01-20 19:53:28 UTC (rev 322511) @@ -2,7 +2,7 @@ -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /SVNROOT/ pre-commit
rasmus Fri, 20 Jan 2012 05:16:03 + Revision: http://svn.php.net/viewvc?view=revision&revision=322484 Log: Oops Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2012-01-20 05:15:17 UTC (rev 322483) +++ SVNROOT/pre-commit 2012-01-20 05:16:03 UTC (rev 322484) @@ -2,7 +2,7 @@ -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /SVNROOT/ pre-commit
dsp Fri, 20 Jan 2012 00:43:19 + Revision: http://svn.php.net/viewvc?view=revision&revision=322482 Log: Move qaweb to git Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2012-01-20 00:39:10 UTC (rev 322481) +++ SVNROOT/pre-commit 2012-01-20 00:43:19 UTC (rev 322482) @@ -2,7 +2,7 @@ -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /SVNROOT/ pre-commit
dsp Thu, 19 Jan 2012 20:22:59 + Revision: http://svn.php.net/viewvc?view=revision&revision=322476 Log: Deny SVN commit access to web/php-master, web/php-gcov, web/php-news Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2012-01-19 20:19:59 UTC (rev 322475) +++ SVNROOT/pre-commit 2012-01-19 20:22:59 UTC (rev 322476) @@ -1,7 +1,8 @@ #!/usr/local/bin/php -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /SVNROOT/ pre-commit
dsp Wed, 18 Jan 2012 14:04:16 + Revision: http://svn.php.net/viewvc?view=revision&revision=322448 Log: English! Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2012-01-18 14:01:33 UTC (rev 322447) +++ SVNROOT/pre-commit 2012-01-18 14:04:16 UTC (rev 322448) @@ -38,7 +38,7 @@ foreach($migrated_repositories as $reponame) { if (strncmp($changed_path, $reponame, strlen($reponame)) === 0) { -fail("This modules now uses git. http://git.php.net\n";); +fail("This module now uses git. http://git.php.net\n";); } } /* Tags checks disabled. Too many special cases, not enough people making this -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /SVNROOT/ pre-commit
dsp Wed, 18 Jan 2012 14:01:33 + Revision: http://svn.php.net/viewvc?view=revision&revision=322447 Log: Readonly access to web/php-bugs Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2012-01-18 13:54:52 UTC (rev 322446) +++ SVNROOT/pre-commit 2012-01-18 14:01:33 UTC (rev 322447) @@ -1,6 +1,7 @@ #!/usr/local/bin/php http://git.php.net\n";); +foreach($migrated_repositories as $reponame) { +if (strncmp($changed_path, $reponame, strlen($reponame)) === 0) { +fail("This modules now uses git. http://git.php.net\n";); +} } /* Tags checks disabled. Too many special cases, not enough people making this mistake to make the extra work worth it. -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /SVNROOT/ pre-commit
bjoriFri, 30 Dec 2011 11:11:01 + Revision: http://svn.php.net/viewvc?view=revision&revision=321553 Log: whopsydopsy, fix typo spotted by mike@ Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2011-12-30 10:13:06 UTC (rev 321552) +++ SVNROOT/pre-commit 2011-12-30 11:11:01 UTC (rev 321553) @@ -35,7 +35,7 @@ fail("Commits to archived modules are not allowed.\n"); } -if (strncmp($changed_path, "systems/", strlen("archived/")) === 0) { +if (strncmp($changed_path, "systems/", strlen("systems/")) === 0) { fail("Systems now uses git. http://git.php.net\n";); } /* Tags checks disabled. Too many special cases, not enough people making this -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /SVNROOT/ pre-commit
bjoriMon, 30 May 2011 15:01:00 + Revision: http://svn.php.net/viewvc?view=revision&revision=311589 Log: pecl-group@ doesn't exist, reported by michelec@ Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2011-05-30 14:49:33 UTC (rev 311588) +++ SVNROOT/pre-commit 2011-05-30 15:01:00 UTC (rev 311589) @@ -138,7 +138,7 @@ if (strncmp($last_path, "pear", strlen("pear")) === 0) { $access_contact_email = 'pear-gr...@php.net'; } else if (strncmp($last_path, "pecl", strlen("pecl")) === 0) { -$access_contact_email = 'pecl-gr...@php.net'; +$access_contact_email = 'pecl-...@php.net'; } else if (strncmp($last_path, "phpdoc", strlen("phpdoc")) === 0) { $access_contact_email = 'php...@lists.php.net'; } else { -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /SVNROOT/ pre-commit
gwynne Wed, 29 Jul 2009 17:09:15 + Revision: http://svn.php.net/viewvc?view=revision&revision=286524 Log: Disable checks for commits to tags/. It was a good idea, but there are too many cases where it would be legit and not enough cases of the protection being needed. Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2009-07-29 16:52:16 UTC (rev 286523) +++ SVNROOT/pre-commit 2009-07-29 17:09:15 UTC (rev 286524) @@ -34,6 +34,9 @@ if (strncmp($changed_path, "archived/", strlen("archived/")) === 0) { fail("Commits to archived modules are not allowed.\n"); } + +/* Tags checks disabled. Too many special cases, not enough people making this +mistake to make the extra work worth it. // path contains "/tags/" if (($tags_loc = strpos($changed_path, '/tags/')) !== FALSE) { @@ -67,7 +70,7 @@ fail("Committing to a tag is not allowed.\n"); } } - +*/ } // - -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /SVNROOT/ pre-commit
gwynne Sat, 25 Jul 2009 14:42:05 + Revision: http://svn.php.net/viewvc?view=revision&revision=286303 Log: correctly match /pear2 as well as /pear for the use of PEAR semantics Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2009-07-22 15:10:15 UTC (rev 286302) +++ SVNROOT/pre-commit 2009-07-25 14:42:05 UTC (rev 286303) @@ -59,7 +59,7 @@ // Check commit against it $exit_val = 0; foreach ($commit_info['changed_paths'] as $changed_path => $path_actions) { -if (strncmp($changed_path, "pear/", strlen("pear/")) === 0) { +if (strncmp($changed_path, "pear", strlen("pear")) === 0) { $avail_lines = $pear_avail_db; debug("Using PEAR avail."); } else { @@ -112,11 +112,11 @@ } if ($exit_val) { -if (strncmp($last_path, "pear/", strlen("pear/")) === 0) { +if (strncmp($last_path, "pear", strlen("pear")) === 0) { $access_contact_email = 'pear-gr...@php.net'; -} else if (strncmp($last_path, "pecl/", strlen("pecl/")) === 0) { +} else if (strncmp($last_path, "pecl", strlen("pecl")) === 0) { $access_contact_email = 'pecl-gr...@php.net'; -} else if (strncmp($last_path, "phpdoc/", strlen("phpdoc/")) === 0) { +} else if (strncmp($last_path, "phpdoc", strlen("phpdoc")) === 0) { $access_contact_email = 'php...@lists.php.net'; } else { $access_contact_email = 'gr...@php.net'; -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: SVNROOT/ pre-commit
gwynne Mon, 20 Jul 2009 15:05:54 + Revision: http://svn.php.net/viewvc?view=revision&revision=284443 Changed paths: U SVNROOT/pre-commit Log: enable per-file avail checks Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2009-07-20 15:00:54 UTC (rev 284442) +++ SVNROOT/pre-commit 2009-07-20 15:05:54 UTC (rev 284443) @@ -48,8 +48,8 @@ function pattern_matches_commit($pattern) { -foreach ($GLOBALS['dirs_changed'] as $dir_changed) { -if (!preg_match($pattern, $dir_changed)) { +foreach ($GLOBALS['paths_changed'] as $path_changed) { +if (!preg_match($pattern, $path_changed)) { return FALSE; } } @@ -71,17 +71,15 @@ // - // Build list of changes if ($is_DEBUG) { -$data = explode("\n::\n", trim(stream_get_contents(STDIN))); -$paths_changed = explode("\n", $data[0]); -$dirs_changed = explode("\n", $data[1]); +$paths_changed = explode("\n", trim(stream_get_contents(STDIN))); $log_message = array('test1', 'test2'); $author = $argv[3]; } else { $paths_changed = run_svnlook('changed'); -$dirs_changed = run_svnlook('dirs-changed'); $log_message = run_svnlook('log'); $author = trim(implode("\n", run_svnlook('author'))); } +array_walk($paths_changed, create_function('&$v, $k', '$v = trim($v); $v = ltrim(substr($v, strcspn($v, " \t")));')); // - // Log message empty? @@ -112,7 +110,7 @@ // - // Check commit against it $exit_val = 0; -foreach ($dirs_changed as $dir_changed) { +foreach ($paths_changed as $path_changed) { foreach ($avail_lines as $avail_line) { if (strncmp($avail_line, 'unavail', 7) == 0) { $bit = 0; @@ -138,7 +136,7 @@ $in_repo = count($modulelist) == 0; if (!$in_repo) { foreach ($modulelist as $module) { -if (fnmatch("{$module}*", $dir_changed)) { +if (fnmatch("{$module}*", $path_changed)) { $in_repo = TRUE; } } @@ -153,7 +151,7 @@ print "DEBUG: User {$author} " . ($user_in_list ? "matched" : "did not match") . " user list: " . implode(",", $userlist) . "\n"; } if ($in_repo) { -print "DEBUG: Directory {$dir_changed} " . ($in_repo ? "matched" : "did not match") . " repo list: " . implode(",", $modulelist) . "\n"; +print "DEBUG: Path {$path_changed} " . ($in_repo ? "matched" : "did not match") . " repo list: " . implode(",", $modulelist) . "\n"; } if ($user_in_list || $in_repo) { print "DEBUG: exit_val == {$exit_val} for " . var_export($user_in_list, 1) . "/" . var_export($in_repo, 1) . ".\n"; @@ -161,22 +159,22 @@ } } if ($exit_val) { // if one dir fails, all fail -$last_dir = $dir_changed; +$last_path = $path_changed; break; } } if ($exit_val) { -if (preg_match('/^pear/', $last_dir)) { +if (preg_match('/^pear/', $last_path)) { $access_contact_email = 'pear-gr...@php.net'; -} else if (preg_match('/^pecl/', $last_dir)) { +} else if (preg_match('/^pecl/', $last_path)) { $access_contact_email = 'pecl-gr...@php.net'; -} else if (preg_match('/^phpdoc/', $last_dir)) { +} else if (preg_match('/^phpdoc/', $last_path)) { $access_contact_email = 'php...@lists.php.net'; } else { $access_contact_email = 'gr...@php.net'; } -fail("***\nAccess denied: Insufficient karma for {$author} to {$last_dir}.\nContact {$access_contact_email} for access.\n"); +fail("***\nAccess denied: Insufficient karma for {$author} to {$last_path}.\nContact {$access_contact_email} for access.\n"); } -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: SVNROOT/ pre-commit
gwynne Fri, 17 Jul 2009 11:40:08 + URL: http://svn.php.net/viewvc?view=revision&revision=284252 Changed paths: U SVNROOT/pre-commit Log: disable the keywords check. sigh. Modified: SVNROOT/pre-commit === --- SVNROOT/pre-commit 2009-07-17 11:35:10 UTC (rev 284251) +++ SVNROOT/pre-commit 2009-07-17 11:40:08 UTC (rev 284252) @@ -185,7 +185,9 @@ } // - +// CHECK DISABLED BY POPULAR SCREAMING // Changing text files requires svn:keywords set +/* $paths_added = array_filter($paths_changed, create_function('$v', 'return ($v[0] === "A");')); foreach ($paths_added as $path_added) { preg_match('/^([^[:space:]]+)[[:space:]]+(.*)$/uX', $path_added, $matches); @@ -218,6 +220,7 @@ print "DEBUG: File is binary. Moving on.\n"; } } +*/ exit(0); -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php