Bug: T188225
Change-Id: Ice1bdae3d16cf365da14c6df0e8d91d2b914f064
$end = $maxRevId > 0
? $maxRevId
: $dbw->selectField( 'revision', 'MAX(rev_id)', false, __METHOD__ );
$end = $maxRevId > 0
? $maxRevId
: $dbw->selectField( 'revision', 'MAX(rev_id)', false, __METHOD__ );
+
+ if ( empty( $end ) ) {
+ $this->output( "No revisions found, aborting.\n" );
+ return true;
+ }
+
$blockStart = $start;
$attempted = 0;
$inserted = 0;
$blockStart = $start;
$attempted = 0;
$inserted = 0;