<?php

require_once( dirname(__FILE__) . '/../commandLine.inc' );

$dbr = wfGetDB( DB_SLAVE );
$row = $dbr->selectRow( 'text', array( 'old_flags', 'old_text' ), array( 'old_id' => $args[0] ) );
$obj = unserialize( $row->old_text );

if ( get_class( $obj ) == 'concatenatedgziphistoryblob' ) {
	print_r( array_keys( $obj->mItems ) );
} else {
	var_dump( $obj );
}

