Reverts r49997; link is now using the checkout revision which makes pathrev work properly again for branches, so we don't need to use the (apparently non-functional) revision parameter instead.
* (bug 20726) Title::getLatestRevID's documentation now says that the function
returns false if the page doesn't exist
* (bug 20751) ForeignApiRepo now urldecodes filenames when saving to local cache
+* (bug 20730) Fix to Special:Version ViewVC link for branch checkouts
== API changes in 1.16 ==
$info['url']
);
$pathRelativeToRepo = substr( $info['url'], strlen( $info['repo-url'] ) );
- if ( substr( $pathRelativeToRepo, 0, 6 ) == '/trunk' ) {
- $viewvc .= '/?pathrev=';
- } else {
- // Avoids 404 error using pathrev when it does not found
- $viewvc .= '/?revision=';
- }
+ $viewvc .= '/?pathrev=';
$viewvc .= urlencode( $info['checkout-rev'] );
$info['viewvc-url'] = $viewvc;
}