+
+ function handleUpload( $revision ) {
+ if ( $this->uploads ) {
+ $this->uploadCount++;
+ // $this->report();
+ $this->progress( "upload: " . $revision->getFilename() );
+
+ if ( !$this->dryRun ) {
+ // bluuuh hack
+ // call_user_func( $this->uploadCallback, $revision );
+ $dbw = wfGetDB( DB_MASTER );
+ return $dbw->deadlockLoop( array( $revision, 'importUpload' ) );
+ }
+ }
+ }
+
+ function handleLogItem( $rev ) {
+ $this->revCount++;
+ $this->report();
+
+ if ( !$this->dryRun ) {
+ call_user_func( $this->logItemCallback, $rev );
+ }
+ }