r42591 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r42590‎ | r42591 | r42592 >
Date:02:27, 26 October 2008
Author:brion
Status:old (Comments)
Tags:
Comment:
Backing out r42575 "Add quick script to update to the latest SVN version Wikimedia is using."

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. ;)
Modified paths:
  • /trunk/phase3/maintenance/scapToWikimedia.php (deleted) (history)

Diff [purge]

Index: trunk/phase3/maintenance/scapToWikimedia.php
@@ -1,13 +0,0 @@
2 -<?php
3 -
4 -require_once( dirname( __FILE__ ) . '/commandLine.inc');
5 -
6 -$url = 'http://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&format=php';
7 -$data = @unserialize( Http::get( $url ) );
8 -$rev = @$data['query']['general']['rev'];
9 -if ( !$rev )
10 - die( "Unable to fetch latest SVN revision from {$url}\n" );
11 -
12 -print "Updating to revision {$rev}\n";
13 -chdir( dirname( __FILE__ ) . '/..' );
14 -system( "svn up -r {$rev}" );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r42575Add quick script to update to the latest SVN version Wikimedia is using.btongminh20:53, 25 October 2008

Comments

#Comment by Bryan (talk | contribs)   14:54, 26 October 2008

Well, I suppose that this is a little bit of an "on your own risk operation". Could run an svn status in advance though.

Status & tagging log