3 * concept is to merge commits from a live or working tree
4 * into the 'release tree'
7 * step 1 = render the log of differences..
11 require_once 'MTrackWeb/Log.php';
13 class MTrackWeb_Merger extends MTrackWeb_Log {
16 // function getAuth() - from log..
22 $this->pi = empty($pi) ? '' : ($pi . $this->bootLoader->ext);
23 $this->repo = DB_DataObject::factory('mtrack_repos');
24 $this->filename = $this->repo->loadFromPath($this->pi);
28 if (!$this->repo->id) {
29 return HTML_FlexyFramework::run('Browse');
32 if (!$this->projectPerm($this->repo->project_id, 'MTrack.Repos', 'S')) {
33 return HTML_FlexyFramework::run('Noperm'); // noperm = loggedin -> need more perms / not.. try loggin in..
35 $hist = $this->repo->history("/", array($offset,100), $object, $ident);
42 $ar = $this->repo->history("/", null, "rev", "$release..$master");
45 // need to get a 2 dimensional array of
46 // files along top, and commints down.
47 foreach($ar as $commit) {
48 $files = $commit->files();
50 'commit' => $commit->time()
52 foreach($files as $f) {
53 $row[$f] = $commit->uid();
57 // this might result in alot of white boxes where you can
58 // let's see what it looks like..