Index: trunk/extensions/CodeReview/populateFollowupRevisions.php |
— | — | @@ -10,7 +10,7 @@ |
11 | 11 | public function __construct() { |
12 | 12 | parent::__construct(); |
13 | 13 | $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.' ); |
15 | 15 | $this->addArg( 'revisions', "The revisions to set status for. Format: start:end" ); |
16 | 16 | } |
17 | 17 | |
— | — | @@ -48,10 +48,16 @@ |
49 | 49 | |
50 | 50 | $affectedRevs = $rev->getUniqueAffectedRevs(); |
51 | 51 | |
| 52 | + $this->output( "r{$row->cr_id}: " ); |
| 53 | + |
52 | 54 | if ( count( $affectedRevs ) ) { |
| 55 | + $this->output( "associating revs " . implode( ',', $affectedRevs ) . "\n" ); |
53 | 56 | $rev->addReferencesTo( $affectedRevs ); |
| 57 | + } else { |
| 58 | + $this->output( "no revisions followed up\n" ); |
54 | 59 | } |
55 | 60 | } |
| 61 | + $this->output( "Done!\n" ); |
56 | 62 | } |
57 | 63 | } |
58 | 64 | |