Index: trunk/extensions/CodeReview/ui/CodeRevisionListView.php |
— | — | @@ -2,7 +2,11 @@ |
3 | 3 | |
4 | 4 | // Special:Code/MediaWiki |
5 | 5 | class CodeRevisionListView extends CodeView { |
6 | | - public $mRepo, $mPath, $batchForm; |
| 6 | + /** |
| 7 | + * @var CodeRepository |
| 8 | + */ |
| 9 | + public $mRepo; |
| 10 | + public $mPath, $batchForm; |
7 | 11 | |
8 | 12 | /** |
9 | 13 | * @param $repo CodeRepository or String |
— | — | @@ -252,9 +256,7 @@ |
253 | 257 | 'fields' => $this->getSelectFields(), |
254 | 258 | 'conds' => array( |
255 | 259 | 'cp_repo_id' => $this->mRepo->getId(), |
256 | | - 'cp_path ' . $this->mDb->buildLike( $this->getSVNPath(), $this->mDb->anyString() ), |
257 | | - // performance |
258 | | - 'cp_rev_id > ' . $this->mRepo->getPathSearchHorizon() |
| 260 | + 'cp_path' => $this->getSVNPath(), |
259 | 261 | ), |
260 | 262 | 'options' => array( 'GROUP BY' => $defaultSort, 'USE INDEX' => array( 'code_path' => 'cp_repo_id' ) ), |
261 | 263 | 'join_conds' => array( |