Restructured the control of the large commits.

This commit is contained in:
Loic d'Anterroches
2009-01-20 16:26:36 +01:00
parent df086f7a61
commit e159185465
4 changed files with 24 additions and 23 deletions

View File

@@ -225,8 +225,7 @@ class IDF_Views_Source
}
$title = sprintf(__('%s Commit Details'), (string) $request->project);
$page_title = sprintf(__('%s Commit Details - %s'), (string) $request->project, $commit);
$size = $scm->getCommitSize($commit);
$large = ($size[2] > 100 or ($size[0] + $size[1]) > 20000);
$large = $scm->isCommitLarge($commit);
$cobject = $scm->getCommit($commit, !$large);
$rcommit = IDF_Commit::getOrAdd($cobject, $request->project);
$diff = new IDF_Diff($cobject->changes);