r63902 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63901‎ | r63902 | r63903 >
Date:05:54, 18 March 2010
Author:tstarling
Status:ok
Tags:
Comment:
Fix for incorrect hard-coded path name in standalone script. To eliminate WMF working copy patches every time the path changes.
Modified paths:
  • /trunk/extensions/ExtensionDistributor (modified) (history)
  • /trunk/extensions/ExtensionDistributor/svn-invoker.conf.sample (added) (history)
  • /trunk/extensions/ExtensionDistributor/svn-invoker.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ExtensionDistributor/svn-invoker.conf.sample
@@ -0,0 +1,4 @@
 2+<?php
 3+
 4+$wgExtDistWorkingCopy = '/path/to/mw-working-copy';
 5+
Index: trunk/extensions/ExtensionDistributor/svn-invoker.php
@@ -9,7 +9,13 @@
1010 exit( 1 );
1111 }
1212
13 -$wgExtDistWorkingCopy = '/mnt/upload5/private/ExtensionDistributor/mw-snapshot';
 13+$confFile = dirname( __FILE__ ) . '/svn-invoker.conf';
 14+if ( !file_exists( $confFile ) ) {
 15+ echo "Error: please create svn-invoker.conf based on svn-invoker.conf.sample\n";
 16+ exit( 1 );
 17+}
 18+require( $confFile );
 19+
1420 svnExecute();
1521
1622 function svnValidate( $s ) {
Property changes on: trunk/extensions/ExtensionDistributor
___________________________________________________________________
Added: svn:ignore
1723 + svn-invoker.conf

Follow-up revisions

RevisionCommit summaryAuthorDate
r64049* MFT r63764, r63897, r63898, r63899, r63900, r63901, r63902. Most changes ar...tstarling00:06, 23 March 2010
r64051MFT r63764, r63897, r63898, r63899, r63900, r63901, r63902: assorted working ...tstarling01:21, 23 March 2010

Status & tagging log