|
@@ 497-502 (lines=6) @@
|
| 494 |
|
'rev_comment' => $this->getComment() ], |
| 495 |
|
__METHOD__ |
| 496 |
|
); |
| 497 |
|
if ( $prior ) { |
| 498 |
|
// @todo FIXME: This could fail slightly for multiple matches :P |
| 499 |
|
wfDebug( __METHOD__ . ": skipping existing revision for [[" . |
| 500 |
|
$this->title->getPrefixedText() . "]], timestamp " . $this->timestamp . "\n" ); |
| 501 |
|
return false; |
| 502 |
|
} |
| 503 |
|
} |
| 504 |
|
|
| 505 |
|
if ( !$pageId ) { |
|
@@ 505-511 (lines=7) @@
|
| 502 |
|
} |
| 503 |
|
} |
| 504 |
|
|
| 505 |
|
if ( !$pageId ) { |
| 506 |
|
// This seems to happen if two clients simultaneously try to import the |
| 507 |
|
// same page |
| 508 |
|
wfDebug( __METHOD__ . ': got invalid $pageId when importing revision of [[' . |
| 509 |
|
$this->title->getPrefixedText() . ']], timestamp ' . $this->timestamp . "\n" ); |
| 510 |
|
return false; |
| 511 |
|
} |
| 512 |
|
|
| 513 |
|
// Select previous version to make size diffs correct |
| 514 |
|
// @todo This assumes that multiple revisions of the same page are imported |