Take into account if in one branch but listing another.

Need to check how this is working on a bar repository.
This commit is contained in:
Loic d'Anterroches
2008-07-27 01:51:08 +02:00
parent c915f8fccf
commit 789c7ed43d
2 changed files with 18 additions and 9 deletions

View File

@@ -58,9 +58,12 @@ class IDF_Views_Source
$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',
@@ -98,9 +101,12 @@ class IDF_Views_Source
$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',