r112078 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112077‎ | r112078 | r112079 >
Date:02:12, 22 February 2012
Author:tstarling
Status:ok
Tags:
Comment:
Modified paths:
  • /branches/wmf/1.19wmf1/maintenance/rebuildLocalisationCache.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.19wmf1/maintenance/rebuildLocalisationCache.php
@@ -36,6 +36,8 @@
3737 $this->mDescription = "Rebuild the localisation cache";
3838 $this->addOption( 'force', 'Rebuild all files, even ones not out of date' );
3939 $this->addOption( 'threads', 'Fork more than one thread', false, true );
 40+ $this->addOption( 'outdir', 'Override the output directory (normally $wgCacheDirectory)',
 41+ false, true );
4042 }
4143
4244 public function memoryLimit() {
@@ -65,6 +67,9 @@
6668 if ( $force ) {
6769 $conf['forceRecache'] = true;
6870 }
 71+ if ( $this->hasOption( 'outdir' ) ) {
 72+ $conf['storeDirectory'] = $this->getOption( 'outdir' );
 73+ }
6974 $lc = new LocalisationCache_BulkLoad( $conf );
7075
7176 $codes = array_keys( Language::getLanguageNames( true ) );
Property changes on: branches/wmf/1.19wmf1/maintenance/rebuildLocalisationCache.php
___________________________________________________________________
Added: svn:mergeinfo
7277 Merged /branches/new-installer/phase3/maintenance/rebuildLocalisationCache.php:r43664-66004
7378 Merged /branches/JSTesting/maintenance/rebuildLocalisationCache.php:r100352-107913
7479 Merged /branches/REL1_15/phase3/maintenance/rebuildLocalisationCache.php:r51646
7580 Merged /branches/wmf/1.18wmf1/maintenance/rebuildLocalisationCache.php:r97508
7681 Merged /branches/REL1_17/phase3/maintenance/rebuildLocalisationCache.php:r81445,81448
7782 Merged /branches/sqlite/maintenance/rebuildLocalisationCache.php:r58211-58321
7883 Merged /trunk/phase3/maintenance/rebuildLocalisationCache.php:r111002,111029,111034,111062,111067,111076,111085,111128,111144,111251,111397,111571,111574,111597,112076

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r112076Output directory option, to allow messages to be put directly into /h/w/ctstarling02:09, 22 February 2012

Status & tagging log