Indefero

Indefero Commit Details


Date:2008-07-26 18:51:08 (16 years 4 months 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, newdiff, release-1.1, release-1.2, release-1.3, svn
Commit:789c7ed43d2b551ba9de97dc8af87cb8d6fa208c
Parents: c915f8fccfc20a1a491bb88dd7848005dc1641ff
Message:Take into account if in one branch but listing another.

Need to check how this is working on a bar repository.
Changes:

File differences

src/IDF/Git.php
6969
7070
7171
72
73
74
72
73
74
75
76
7577
7678
7779
......
193195
194196
195197
198
196199
197200
198201
$cmd = sprintf('GIT_DIR=%s git-ls-tree -t -l %s', $this->repo, $base->hash);
exec($cmd, &$out);
$rawlog = array();
$cmd = sprintf('GIT_DIR=%s git log --raw --abbrev=40 --pretty=oneline',
$this->repo);
exec($cmd, &$rawlog);
foreach ($this->getBranches() as $br) {
$cmd = sprintf('GIT_DIR=%s git log --raw --abbrev=40 --pretty=oneline %s',
$this->repo, $br);
exec($cmd, &$rawlog);
}
$rawlog = implode("\n", array_reverse($rawlog));
$current_dir = getcwd();
chdir(substr($this->repo, 0, -5));
escapeshellarg($this->repo), $n, $format, $tree);
$out = array();
exec($cmd, &$out);
//print_r($cmd);
return self::parseLog($out, 4);
}
src/IDF/Views/Source.php
5858
5959
6060
61
62
63
61
62
63
64
65
66
6467
6568
6669
......
98101
99102
100103
101
102
103
104
105
106
107
108
109
104110
105111
106112
$tree = $match[2];
$cobject = '';
$tree_in = in_array($tree, $branches);
foreach ($git->getChangeLog('', null) as $change) {
if ($change->tree == $tree) {
$cobject = $change;
foreach ($branches as $br) {
foreach ($git->getChangeLog($br, null) as $change) {
if ($change->tree == $tree) {
$cobject = $change;
break 2;
}
}
}
return Pluf_Shortcuts_RenderToResponse('source/tree.html',
$prev = split('/', $request_file);
$l = array_pop($prev);
$previous = substr($request_file, 0, -strlen($l.' '));
foreach ($git->getChangeLog('', null) as $change) {
if ($change->tree == $tree) {
$cobject = $change; //$git->getCommit($tree);
foreach ($branches as $br) {
foreach ($git->getChangeLog($br, null) as $change) {
if ($change->tree == $tree) {
$cobject = $change;
break 2;
}
}
}
return Pluf_Shortcuts_RenderToResponse('source/tree.html',

Archive Download the corresponding diff file

Page rendered in 0.08197s using 13 queries.