Indefero

Indefero Commit Details


Date:2009-01-25 13:48:02 (15 years 10 months ago)
Author:Loic d'Anterroches
Branch:dev, develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:743a3f312cb82629e631eecaae57c448b1b57ce7
Parents: e513d95dbe687ea1c420ed0e6a517cf0de63d122
Message:Added a control to avoid redirecting to an inexisting branch.

Changes:

File differences

src/IDF/Views/Source.php
6464
6565
6666
67
68
69
70
71
72
6773
6874
6975
$branches = $scm->getBranches();
$commit = $match[2];
if ('commit' != $scm->testHash($commit)) {
if (count($branches) == 0) {
// Redirect to the project source help
$url = Pluf_HTTP_URL_urlForView('IDF_Views_Source::help',
array($request->project->shortname));
return new Pluf_HTTP_Response_Redirect($url);
}
// Redirect to the first branch
$url = Pluf_HTTP_URL_urlForView('IDF_Views_Source::changeLog',
array($request->project->shortname,

Archive Download the corresponding diff file

Page rendered in 0.27620s using 13 queries.