Index: trunk/phase3/includes/specials/SpecialVersion.php |
— | — | @@ -477,12 +477,7 @@ |
478 | 478 | $info['url'] |
479 | 479 | ); |
480 | 480 | $pathRelativeToRepo = substr( $info['url'], strlen( $info['repo-url'] ) ); |
481 | | - if ( substr( $pathRelativeToRepo, 0, 6 ) == '/trunk' ) { |
482 | | - $viewvc .= '/?pathrev='; |
483 | | - } else { |
484 | | - // Avoids 404 error using pathrev when it does not found |
485 | | - $viewvc .= '/?revision='; |
486 | | - } |
| 481 | + $viewvc .= '/?pathrev='; |
487 | 482 | $viewvc .= urlencode( $info['checkout-rev'] ); |
488 | 483 | $info['viewvc-url'] = $viewvc; |
489 | 484 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -521,6 +521,7 @@ |
522 | 522 | * (bug 20726) Title::getLatestRevID's documentation now says that the function |
523 | 523 | returns false if the page doesn't exist |
524 | 524 | * (bug 20751) ForeignApiRepo now urldecodes filenames when saving to local cache |
| 525 | +* (bug 20730) Fix to Special:Version ViewVC link for branch checkouts |
525 | 526 | |
526 | 527 | == API changes in 1.16 == |
527 | 528 | |