Backing out r42575 "Add quick script to update to the latest SVN version Wikimedia...
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 26 Oct 2008 02:27:18 +0000 (02:27 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 26 Oct 2008 02:27:18 +0000 (02:27 +0000)
This will update backwards as well as forwards, which is a little scary. :)

Since it could be pretty surprising and make your life harder to recover from if you run it by accident (losing mixed versions, encountering new update conflicts, etc), I'd recommend backing it out for now. Also 'scap' is a term of art specific to our deployment system, and is not used appropriately here. ;)

maintenance/scapToWikimedia.php [deleted file]

diff --git a/maintenance/scapToWikimedia.php b/maintenance/scapToWikimedia.php
deleted file mode 100644 (file)
index da99b28..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
-require_once( dirname( __FILE__ ) . '/commandLine.inc');
-
-$url = 'http://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&format=php';
-$data = @unserialize( Http::get( $url ) );
-$rev = @$data['query']['general']['rev'];
-if ( !$rev )
-       die( "Unable to fetch latest SVN revision from {$url}\n" );
-
-print "Updating to revision {$rev}\n";
-chdir( dirname( __FILE__ ) . '/..' );
-system( "svn up -r {$rev}" );