Now that IDF_Scm::getChanges() is implemented for all SCMs, there is no need for the try-catch anymore.

feature.content-md5
Thomas Keller 2011-06-10 23:40:58 +02:00
parent 24fc41ee0d
commit 118ca9f11f
1 changed files with 3 additions and 8 deletions

View File

@ -307,12 +307,7 @@ class IDF_Views_Source
$cobject->diff = null; $cobject->diff = null;
$diff->parse(); $diff->parse();
$scmConf = $request->conf->getVal('scm', 'git'); $scmConf = $request->conf->getVal('scm', 'git');
try {
$changes = $scm->getChanges($commit); $changes = $scm->getChanges($commit);
} catch (Exception $e) {
// getChanges is not yes supported by this backend.
$changes = array();
}
$branches = $scm->getBranches(); $branches = $scm->getBranches();
$in_branches = $scm->inBranches($cobject->commit, ''); $in_branches = $scm->inBranches($cobject->commit, '');
$tags = $scm->getTags(); $tags = $scm->getTags();