require_once('./global.php');
-$navbar = $controller->construct_breadcrumb();
+$navbar = ConstructNavbar();
// ###################################################################
-$latest = $controller->cachev->fetch_node();
-
-$link['log'] = $controller->href_compound('log.php');
-
-$show['head'] = ($latest['revision'] != $controller->revctx);
-if ($show['head'])
-{
- $link['gohead'] = $controller->href_compound('browse.php', null, Paths::fetch_rev_str(false, 'HEAD'));
- $link['diffhead'] = $controller->href_compound('diff.php', null, Paths::fetch_rev_str(true, 'HEAD', $controller->revctx));
-}
-
-$show['prev'] = ($controller->cachev->fetch_prev_revision($controller->revctx) != -1);
-if ($show['prev'])
-{
- $link['diffprev'] = $controller->href_compound('diff.php', null, Paths::fetch_rev_str(false, $controller->revctx));
-}
+$revision = new Revision($input->in['repos'], $input->in['rev']);
// ###################################################################
+/*
$show['props'] = false;
$proplist = '';
if (sizeof($latest['properties']) > 0)
eval('$proplist .= "' . $template->fetch('property') . '";');
}
}
+*/
// ###################################################################
-$revinfo = $controller->cachev->fetch_revision($controller->revctx);
+// $revinfo['message_clean'] = SVNCommon::format_log_message($revinfo['message']);
+// $revinfo['date'] = SVNCommon::format_date_string($revinfo['dateline']);
-$revinfo['message_clean'] = SVNCommon::format_log_message($revinfo['message']);
-$revinfo['date'] = SVNCommon::format_date_string($revinfo['dateline']);
-
-$listing = $controller->library->command('ls');
+$listing = BSXml::Parse($lib->run('ls --xml -r' . $revision->revision . ' ' . $lib->arg($repos->fetchPath($input->in['repos']) . $input->in['path']), true));
+BSXml::UnifyNode($listing['lists']['list']['entry']);
$nodes = '';
-
-foreach ($listing AS $item)
+foreach ($listing['lists']['list']['entry'] AS $item)
{
- if ($item[ strlen($item) - 1 ] == '/')
- {
- $show['directory'] = true;
- $browse = $controller->href_compound('browse.php', $item);
- }
- else
- {
- $show['directory'] = false;
- $view = $controller->href_compound('view.php', $item);
- $blame = $controller->href_compound('blame.php', $item);
- }
-
- $log = $controller->href_compound('log.php', $item);
-
+ $isDir = ($item['kind'] == 'dir');
+ $item = $item['name']['value'];
eval('$nodes .= "' . $template->fetch('browse_node') . '";');
}