Index: trunk/extensions/CodeReview/CodeReview.php |
— | — | @@ -182,12 +182,6 @@ |
183 | 183 | $wgCodeReviewMaxDiffPaths = 20; |
184 | 184 | |
185 | 185 | /** |
186 | | - * Limit of the revisions accessible to the search by path. |
187 | | - * Set to 0 to disable the limit. |
188 | | - */ |
189 | | -$wgCodeReviewPathSearchHorizon = 20000; |
190 | | - |
191 | | -/** |
192 | 186 | * Key is repository name. Value is an array of regexes |
193 | 187 | * |
194 | 188 | * Any base paths matching regular expressions in these arrays will have their |
Index: trunk/extensions/CodeReview/backend/CodeRepository.php |
— | — | @@ -141,15 +141,6 @@ |
142 | 142 | return intval( $row ); |
143 | 143 | } |
144 | 144 | |
145 | | - public function getPathSearchHorizon() { |
146 | | - global $wgCodeReviewPathSearchHorizon; |
147 | | - |
148 | | - if( $wgCodeReviewPathSearchHorizon ) |
149 | | - return $this->getLastStoredRev() - $wgCodeReviewPathSearchHorizon; |
150 | | - else |
151 | | - return 0; |
152 | | - } |
153 | | - |
154 | 145 | public function getAuthorList() { |
155 | 146 | global $wgMemc; |
156 | 147 | $key = wfMemcKey( 'codereview', 'authors', $this->getId() ); |
Index: trunk/extensions/CodeReview/ui/CodeRevisionListView.php |
— | — | @@ -205,12 +205,10 @@ |
206 | 206 | $whereCond = array( |
207 | 207 | 'cr_repo_id' => $this->mRepo->getId(), |
208 | 208 | 'cr_id = cp_rev_id', |
209 | | - ' cp_path' . $dbr->buildLike( $this->mPath, $dbr->anyString() ), |
210 | | - // Performance |
211 | | - ' cp_rev_id > ' . $this->mRepo->getPathSearchHorizon() |
| 209 | + 'cp_path' => $this->mPath, |
212 | 210 | ); |
213 | | - // No path; count of code_rev |
214 | 211 | } else { |
| 212 | + // No path; count of code_rev |
215 | 213 | $whereCond = array( 'cr_repo_id' => $this->mRepo->getId() ); |
216 | 214 | } |
217 | 215 | $whereCond = array_merge( $whereCond, $this->getSpecializedWhereClause( $dbr ) ); |