r78880 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78879‎ | r78880 | r78881 >
Date:10:53, 23 December 2010
Author:reedy
Status:ok
Tags:
Comment:
Fix tab fail from r78863

Fixup trailing whitespace at the same time
Modified paths:
  • /trunk/extensions/CodeReview/backend/CodeRevision.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/backend/CodeRevision.php
@@ -337,7 +337,7 @@
338338 $committer = $commitAuthor ? $commitAuthor->getName() : htmlspecialchars( $this->mAuthor );
339339 // Get the authors of these revisions
340340 $res = $dbw->select( 'code_rev',
341 - array(
 341+ array(
342342 'cr_repo_id',
343343 'cr_id',
344344 'cr_author',
@@ -363,11 +363,11 @@
364364 foreach ( $res as $row ) {
365365 $revision = CodeRevision::newFromRow( $this->mRepo, $row );
366366 $users = $revision->getCommentingUsers();
367 -
 367+
368368 $rowUrl = $revision->getFullUrl();
369 -
 369+
370370 $revisionAuthor = $revision->getWikiUser();
371 -
 371+
372372 //Add the followup revision author if they have not already been added as a commentor (they won't want dupe emails!)
373373 if ( $revisionAuthor && !array_key_exists( $revisionAuthor->getId(), $users ) ) {
374374 $users[$revisionAuthor->getId()] = $revisionAuthor;
@@ -589,7 +589,7 @@
590590 }
591591 return $changes;
592592 }
593 -
 593+
594594 public function getPropChangeUsers() {
595595 $dbr = wfGetDB( DB_SLAVE );
596596 $result = $dbr->select( 'code_prop_changes',
@@ -606,7 +606,7 @@
607607 }
608608 return $users;
609609 }
610 -
 610+
611611 /**
612612 * "Review" being revision commenters, and people who set/removed tags and changed the status
613613 */
@@ -660,7 +660,7 @@
661661 }
662662 return $refs;
663663 }
664 -
 664+
665665 /**
666666 * Add references from the specified revisions to this revision. In the UI, this will
667667 * show the specified revisions as follow-ups to this one.
@@ -685,9 +685,9 @@
686686
687687 private function addReferences( $data ) {
688688 $dbw = wfGetDB( DB_MASTER );
689 - $dbw->insert( 'code_relations', $data, __METHOD__, array( 'IGNORE' ) );
 689+ $dbw->insert( 'code_relations', $data, __METHOD__, array( 'IGNORE' ) );
690690 }
691 -
 691+
692692 /**
693693 * Same as addReferencesFrom(), but adds references from this revision to
694694 * the specified revisions.
@@ -706,7 +706,7 @@
707707 }
708708 $this->addReferences( $data );
709709 }
710 -
 710+
711711 /**
712712 * Remove references from the specified revisions to this revision. In the UI, this will
713713 * no longer show the specified revisions as follow-ups to this one.
@@ -738,7 +738,7 @@
739739 __METHOD__,
740740 array( 'ORDER BY' => 'cs_timestamp' )
741741 );
742 -
 742+
743743 $signoffs = array();
744744 foreach ( $result as $row ) {
745745 $signoffs[] = CodeSignoff::newFromRow( $this, $row );
@@ -969,14 +969,14 @@
970970 return false;
971971 }
972972 }
973 -
 973+
974974 public function getFullUrl( $commentId = '' ) {
975975 $title = SpecialPage::getTitleFor( 'Code', $this->mRepo->getName() . '/' . $this->mId );
976 -
 976+
977977 if ( $commentId !== '' ) {
978978 $title->setFragment( "#c{$commentId}" );
979979 }
980 -
 980+
981981 return $title->getFullUrl();
982982 }
983983
@@ -991,14 +991,14 @@
992992 $line = wfMsg( 'code-rev-message' ) . " \00314(" . $this->mRepo->getName() .
993993 ")\003 \0037" . $this->getIdString() . "\003 \00303" . RecentChange::cleanupForIRC( $wgUser->getName() ) .
994994 "\003: \00310" . RecentChange::cleanupForIRC( $wgLang->truncate( $text, 100 ) ) . "\003 " . $url;
995 -
 995+
996996 RecentChange::sendToUDP( $line, $wgCodeReviewUDPAddress, $wgCodeReviewUDPPrefix, $wgCodeReviewUDPPort );
997997 }
998998 }
999999
10001000 protected function sendStatusToUDP( $status, $oldStatus ) {
10011001 global $wgCodeReviewUDPAddress, $wgCodeReviewUDPPort, $wgCodeReviewUDPPrefix, $wgUser;
1002 -
 1002+
10031003 if( $wgCodeReviewUDPAddress ) {
10041004 $url = $this->getFullUrl();
10051005

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r78863Refactor out a bit of the code duplicationreedy23:55, 22 December 2010

Status & tagging log