Indefero

Indefero Commit Details


Date:2008-11-27 02:30:12 (16 years 25 days ago)
Author:Loic d'Anterroches
Branch:dev, develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:93c44feb052aef972713c3ee1f8ae3f8500b98d8
Parents: 08f6c5fc794714b358773239cc65e2c7f979033f
Message:Fixed issue 61, better sync of the source changelog with the latest updates.

The sync is made automatically on all the branches of the project when
looking at the timeline after a given time.
Changes:

File differences

src/IDF/Scm.php
8181
8282
8383
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
84104
85105
}
return $res;
}
/**
* Sync the changes in the repository with the timeline.
*
*/
public static function syncTimeline($request)
{
$cache = Pluf_Cache::factory();
$key = 'IDF_Scm:'.$request->project->shortname.':lastsync';
if (null === ($res=$cache->get($key))) {
$scm = IDF_Scm::get($request);
foreach ($scm->getBranches() as $branche) {
foreach ($scm->getChangeLog($branche, 25) as $change) {
IDF_Commit::getOrAdd($change, $request->project);
}
}
$cache->set($key, true, (int)(Pluf::f('cache_timeout', 300)/2));
}
}
}
src/IDF/Views/Project.php
7979
8080
8181
82
8283
8384
8485
$rights = array();
if (true === IDF_Precondition::accessSource($request)) {
$rights[] = '\'IDF_Commit\'';
IDF_Scm::syncTimeline($request);
}
if (true === IDF_Precondition::accessIssues($request)) {
$rights[] = '\'IDF_Issue\'';

Archive Download the corresponding diff file

Page rendered in 0.12503s using 14 queries.