Indefero

Indefero Commit Details


Date:2011-06-10 16:40:58 (13 years 6 months ago)
Author:Thomas Keller
Branch:develop, feature.content-md5, feature.diff-whitespace, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, release-1.2, release-1.3
Commit:118ca9f11fa5ba7eb54641394bf6edd75f9227c0
Parents: 24fc41ee0d4f8823ecfd0a241c716cf56553a7b9
Message:Now that IDF_Scm::getChanges() is implemented for all SCMs, there is no need for the try-catch anymore.

Changes:

File differences

src/IDF/Views/Source.php
5858
5959
6060
61
61
6262
6363
6464
......
307307
308308
309309
310
311
312
313
314
315
310
316311
317312
318313
......
477472
478473
479474
480
475
481476
482477
483478
$title = sprintf(__('%s Invalid Revision'), (string) $request->project);
$scm = IDF_Scm::get($request->project);
$branches = $scm->getBranches();
$commit = $match[2];
$params = array(
'page_title' => $title,
$cobject->diff = null;
$diff->parse();
$scmConf = $request->conf->getVal('scm', 'git');
try {
$changes = $scm->getChanges($commit);
} catch (Exception $e) {
// getChanges is not yes supported by this backend.
$changes = array();
}
$changes = $scm->getChanges($commit);
$branches = $scm->getBranches();
$in_branches = $scm->inBranches($cobject->commit, '');
$tags = $scm->getTags();
}
// compare two nodes of different types, directories ("tree")
// should come before files ("blob")
// should come before files ("blob")
if ($a->type > $b->type) {
return -1;
}

Archive Download the corresponding diff file

Page rendered in 0.08165s using 13 queries.