Index: trunk/extensions/CodeReview/CodeReview.i18n.php |
— | — | @@ -95,6 +95,7 @@ |
96 | 96 | 'code-release-legend' => 'Generate release notes', |
97 | 97 | 'code-release-startrev' => 'Start rev:', |
98 | 98 | 'code-release-endrev' => 'Last rev:', |
| 99 | + 'code-release-badrange' => 'Range is too large!', |
99 | 100 | |
100 | 101 | 'codereview-subtitle' => 'For $1', |
101 | 102 | |
Index: trunk/extensions/CodeReview/ui/CodeReleaseNotes.php |
— | — | @@ -27,8 +27,11 @@ |
28 | 28 | $this->showForm(); |
29 | 29 | # Sanity/performance check... |
30 | 30 | $lastRev = $this->mRepo->getLastStoredRev(); |
31 | | - if ( $this->mStartRev < ( $lastRev - 3000 ) ) |
32 | | - $this->mStartRev = NULL; |
| 31 | + if ( $this->mStartRev < ( $lastRev - 5000 ) ) { |
| 32 | + global $wgOut; |
| 33 | + $wgOut->addHtml( wfMsgHtml('code-release-badrange') ); |
| 34 | + return; |
| 35 | + } |
33 | 36 | # Show notes if we have at least a starting revision |
34 | 37 | if ( $this->mStartRev ) { |
35 | 38 | $this->showReleaseNotes(); |