Index: branches/wmf/1.16wmf4/extensions/CodeReview/CodeReview.php |
— | — | @@ -151,6 +151,13 @@ |
152 | 152 | */ |
153 | 153 | $wgCodeReviewMaxDiffSize = 500000; |
154 | 154 | |
| 155 | +/** |
| 156 | + * Any base paths matching regular expressions in this array will have their |
| 157 | + * default status set to deferred instead of new. Helpful if you've got a part |
| 158 | + * of the repository you don't care about. |
| 159 | + */ |
| 160 | +$wgCodeReviewDeferredPaths = array(); |
| 161 | + |
155 | 162 | # Schema changes |
156 | 163 | $wgHooks['LoadExtensionSchemaUpdates'][] = 'efCodeReviewSchemaUpdates'; |
157 | 164 | |
Index: branches/wmf/1.16wmf4/extensions/CodeReview/backend/CodeRevision.php |
— | — | @@ -41,6 +41,15 @@ |
42 | 42 | } |
43 | 43 | } |
44 | 44 | $rev->mCommonPath = $common; |
| 45 | + |
| 46 | + // Check for ignored paths |
| 47 | + global $wgCodeReviewDeferredPaths; |
| 48 | + foreach( $wgCodeReviewDeferredPaths as $defer ) { |
| 49 | + if( preg_match( $defer, $rev->mCommonPath ) ) { |
| 50 | + $rev->mStatus = 'deferred'; |
| 51 | + break; |
| 52 | + } |
| 53 | + } |
45 | 54 | return $rev; |
46 | 55 | } |
47 | 56 | |
Property changes on: branches/wmf/1.16wmf4/extensions/CodeReview |
___________________________________________________________________ |
Name: svn:mergeinfo |
48 | 57 | - /branches/wmf-deployment/extensions/CodeReview:60970 |
/trunk/extensions/CodeReview:67212 |
/trunk/phase3/extensions/CodeReview:63545-63546,63549,63643,63764,63897-63901,64113,64509,65387,65391,65555,65590,65650,65816 |
49 | 58 | + /branches/wmf-deployment/extensions/CodeReview:60970 |
/trunk/extensions/CodeReview:63277-63278,67212 |
/trunk/phase3/extensions/CodeReview:63545-63546,63549,63643,63764,63897-63901,64113,64509,65387,65391,65555,65590,65650,65816 |