Revision: 49728 Author: aaron Date: 2009-04-22 05:17:17 +0000 (Wed, 22 Apr 2009)
Log Message: ----------- (bug 18444) Allow modification of default chunk size for low-use svn repositories Modified Paths: -------------- trunk/extensions/CodeReview/CodeReview.php trunk/extensions/CodeReview/svnImport.php Modified: trunk/extensions/CodeReview/CodeReview.php =================================================================== --- trunk/extensions/CodeReview/CodeReview.php 2009-04-22 03:29:07 UTC (rev 49727) +++ trunk/extensions/CodeReview/CodeReview.php 2009-04-22 05:17:17 UTC (rev 49728) @@ -98,6 +98,9 @@ $wgSubversionProxy = false; $wgSubversionProxyTimeout = 30; // default 3 secs is too short :) +// What is the default SVN import chunk size? +$wgCodeReviewImportBatchSize = 400; + // Bump the version number every time you change a CodeReview .css/.js file $wgCodeReviewStyleVersion = 5; Modified: trunk/extensions/CodeReview/svnImport.php =================================================================== --- trunk/extensions/CodeReview/svnImport.php 2009-04-22 03:29:07 UTC (rev 49727) +++ trunk/extensions/CodeReview/svnImport.php 2009-04-22 05:17:17 UTC (rev 49728) @@ -20,7 +20,7 @@ $svn = SubversionAdaptor::newFromRepo( $repo->getPath() ); $lastStoredRev = $repo->getLastStoredRev(); -$chunkSize = 400; +$chunkSize = $wgCodeReviewImportBatchSize; $startTime = microtime( true ); $revCount = 0; _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs