Index: trunk/extensions/CodeReview/CodeReview.php |
— | — | @@ -145,7 +145,9 @@ |
146 | 146 | $wgCodeReviewMaxDiffSize = 500000; |
147 | 147 | |
148 | 148 | /** |
149 | | - * Any base paths matching regular expressions in this array will have their |
| 149 | + * Key is repository name. Value is an array of regexes |
| 150 | + * |
| 151 | + * Any base paths matching regular expressions in these arrays will have their |
150 | 152 | * default status set to deferred instead of new. Helpful if you've got a part |
151 | 153 | * of the repository you don't care about. |
152 | 154 | */ |
Index: trunk/extensions/CodeReview/backend/CodeRevision.php |
— | — | @@ -44,10 +44,12 @@ |
45 | 45 | |
46 | 46 | // Check for ignored paths |
47 | 47 | global $wgCodeReviewDeferredPaths; |
48 | | - foreach ( $wgCodeReviewDeferredPaths as $defer ) { |
49 | | - if ( preg_match( $defer, $rev->mCommonPath ) ) { |
50 | | - $rev->mStatus = 'deferred'; |
51 | | - break; |
| 48 | + if( isset( $wgCodeReviewDeferredPaths[ $repo->getName() ] ) ) { |
| 49 | + foreach( $wgCodeReviewDeferredPaths[ $repo->getName() ] as $defer ) { |
| 50 | + if ( preg_match( $defer, $rev->mCommonPath ) ) { |
| 51 | + $rev->mStatus = 'deferred'; |
| 52 | + break; |
| 53 | + } |
52 | 54 | } |
53 | 55 | } |
54 | 56 | return $rev; |