r79062 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79061‎ | r79062 | r79063 >
Date:15:17, 27 December 2010
Author:reedy
Status:ok
Tags:
Comment:
Followup r78937, fix tab fail. Add some useful debugging output
Modified paths:
  • /trunk/extensions/CodeReview/populateFollowupRevisions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/populateFollowupRevisions.php
@@ -10,7 +10,7 @@
1111 public function __construct() {
1212 parent::__construct();
1313 $this->mDescription = "Populates followup revisions. Useful for setting them on old revisions, without reimporting";
14 - $this->addArg( 'repo', 'The name of the repo. Cannot be all.' );
 14+ $this->addArg( 'repo', 'The name of the repo. Cannot be all.' );
1515 $this->addArg( 'revisions', "The revisions to set status for. Format: start:end" );
1616 }
1717
@@ -48,10 +48,16 @@
4949
5050 $affectedRevs = $rev->getUniqueAffectedRevs();
5151
 52+ $this->output( "r{$row->cr_id}: " );
 53+
5254 if ( count( $affectedRevs ) ) {
 55+ $this->output( "associating revs " . implode( ',', $affectedRevs ) . "\n" );
5356 $rev->addReferencesTo( $affectedRevs );
 57+ } else {
 58+ $this->output( "no revisions followed up\n" );
5459 }
5560 }
 61+ $this->output( "Done!\n" );
5662 }
5763 }
5864

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r78937*(bug 26299) Create maintenance script to populate followup revision tracking...reedy23:38, 23 December 2010

Status & tagging log