https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114432
Revision: 114432 Author: reedy Date: 2012-03-22 23:15:28 +0000 (Thu, 22 Mar 2012) Log Message: ----------- Ping r114730 Most people wont need/want labs and integration Modified Paths: -------------- trunk/tools/code-utils/clone-all.php Modified: trunk/tools/code-utils/clone-all.php =================================================================== --- trunk/tools/code-utils/clone-all.php 2012-03-22 23:06:18 UTC (rev 114431) +++ trunk/tools/code-utils/clone-all.php 2012-03-22 23:15:28 UTC (rev 114432) @@ -3,9 +3,8 @@ $gerrit = "gerrit.wikimedia.org"; $baseUrl = "ssh://$gerrit:29418"; // "https://$gerrit/r/p" if you have no ssh access -$skipRepositories = array( 'test/*', 'operations/*', 'analytics*' ); +$skipRepositories = array( 'test/*', 'operations/*', 'analytics*', 'labs/*', 'integration/*' ); - $command = <<<EOF wget https://$gerrit/r/gerrit/rpc/ProjectAdminService --post-data='{"jsonrpc":"2.0","method":"visibleProjects","params":[],"id":1}' --header "Content-Type: application/json; charset=utf-8" --header "Accept: application/json" -O - EOF; @@ -23,24 +22,24 @@ foreach ( $projects as $project ) { $repo = $project->name->name; print "$repo\n"; - + if ( strpos( $project->description, "DON'T USE" ) !== false ) { echo " Don't use, skipped\n"; continue; } - + foreach ( $skipRepositories as $skip ) { if ( fnmatch( $skip, $repo, FNM_CASEFOLD ) ) { echo " Skipped\n"; continue 2; } } - + if ( file_exists( "$repo/.git" ) ) { echo " There's already a repository at $repo\n"; continue; } - + $start = microtime( true ); passthru( "git clone " . escapeshellarg( "$baseUrl/$repo.git" ) . " " . escapeshellarg( $repo ), $exitCode ); $end = microtime( true ); _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs