$map[$hash] = $this->repo->impl()->commitLogToEvent($sobject);
}
-
- //
-
- /*
-
- need to work out a 'sweet caching method'...
-
- // var_Dump($this->id);
- $q = MTrackDB::q('SELECT * FROM clcache where
- id = ? AND rev = ?' , $this->repo->id, $file->hash );
-
- $ar = $q->fetchAll(PDO::FETCH_ASSOC);
- if (!empty($ar)) {
- require_once 'MTrack/SCM/Git/Event.php';
- $ro = MTrack_SCM_Git_Event::newFromCommit($ar[0]['sobject'], $this->repo);
- // var_dump("RETURNING FROM DB");
- return $ro;
- }
- */
-
- $ent = $this->repo->history($this->name, 1, 'rev', $this->rev);
-
- return $ent[0];
-
- if ($ent) {
- MTrackDB::q('INSERT INTO mtrack_clcache (id, rev, sobject) VALUES ( ? ,? ,? )',
- $this->repo->id, $this->hash , $ent[0]->commit
- );
-
- }
-
+ return array_values($map);
}