Updated to display changes only if the backend supports this function.

This commit is contained in:
Loïc d'Anterroches
2010-12-23 11:57:39 +01:00
parent 0739b856e0
commit 97bc383bc0
2 changed files with 8 additions and 3 deletions

View File

@@ -299,8 +299,13 @@ class IDF_Views_Source
$rcommit = IDF_Commit::getOrAdd($cobject, $request->project);
$diff = new IDF_Diff($cobject->diff);
$diff->parse();
$changes = $scm->getChanges($commit);
$scmConf = $request->conf->getVal('scm', 'git');
try {
$changes = $scm->getChanges($commit);
} catch (Exception $e) {
// getChanges is not yes supported by this backend.
$changes = array();
}
$branches = $scm->getBranches();
$in_branches = $scm->inBranches($cobject->commit, '');
$tags = $scm->getTags();