Fixed issue 227, timeline fails on SVN repositories.

This commit is contained in:
Loic d'Anterroches
2009-05-26 21:20:10 +02:00
parent 0abb706ded
commit 88ce10b8e6
2 changed files with 8 additions and 8 deletions

View File

@@ -343,10 +343,8 @@ class IDF_Scm
$key = 'IDF_Scm:'.$project->shortname.':lastsync';
if (null === ($res=$cache->get($key))) {
$scm = IDF_Scm::get($project);
foreach ($scm->getBranches() as $branche => $path) {
foreach ($scm->getChangeLog($branche, 25) as $change) {
IDF_Commit::getOrAdd($change, $project);
}
foreach ($scm->getChangeLog($scm->getMainBranch(), 25) as $change) {
IDF_Commit::getOrAdd($change, $project);
}
$cache->set($key, true, (int)(Pluf::f('cache_timeout', 300)/2));
}