+ # This bit's done
+ # Purge redundant text records
+ $dbw->commit();
+ if( $deletedRows ) {
+ PurgeRedundantText( true );
+ }
+ } else {
+ $res = $dbw->selectRow( 'archive', 'COUNT(*) as count', array(), __FUNCTION__ );
+ echo( "Found {$res->count} revisions to delete.\n" );
+ echo( "Please run the script again with the --delete option to really delete the revisions.\n" );
+ }
+}