Umherirrender added a comment.

  Revsion seems to exists, but `getContent` can return `null`
  
  There are revision deletion in the history - 
https://cs.wikipedia.org/w/index.php?title=Demence&action=history
  Maybe the revision deletion was done while the revision was open in the 
editor and than submitted.
  
                        if ( $baseRevision && $latestRevision ) {
                                // Attempt the automatic merge, to measure the 
number of actual conflicts.
                                /** @var ThreeWayMerge $merge */
                                $merge = 
MediaWikiServices::getInstance()->getService( 'TwoColConflictThreeWayMerge' );
                                $result = $merge->merge3(
                                        $baseRevision->getContent( 
SlotRecord::MAIN )->serialize(),
                                        $latestRevision->getContent( 
SlotRecord::MAIN )->serialize(),
                                        $editPage->textbox2
                                );
    
                                if ( !$result->isCleanMerge() ) {
                                        $conflictChunks = 
$result->getOverlappingChunkCount();
                                        $conflictChars = 
$result->getOverlappingChunkSize();
                                }
                        }

TASK DETAIL
  https://phabricator.wikimedia.org/T256293

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Umherirrender
Cc: Umherirrender, Aklapper, brennen, Rost_WMDE, Erdinc_Ciftci_WMDE, 
darthmon_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, 
_jensen, rosalieper, Scott_WUaS, Jonas, Wikidata-bugs, WMDE-Fisch, aude, 
Lydia_Pintscher, Jdforrester-WMF, Mbch331, Rxy, Jay8g, Krenair
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to