svn->blame('bugtrack', '/trunk/index.php', 0);
// diff /bugtrack/trunk/index@351:359
$diff = new SVNDiff('bugtrack', '/trunk/', 314, 315);
//print_r($diff);
echo <<
HTML;
foreach ($diff->fetch() AS $filename => $file)
{
echo '
' . $filename . '
';
foreach ($file AS $hunk)
{
echo '';
foreach ($hunk AS $key => $line)
{
if ($key == 'hunk' AND isset($line['old']))
{
echo '
|
';
continue;
}
if ($line['act'] == '+')
{
$color = '#DDFFDD';
}
else if ($line['act'] == '-')
{
$color = '#FFDDDD';
}
else
{
$color = 'white';
}
echo '
' . $line['oldlineno'] . ' |
' . $line['newlineno'] . ' |
' . $viewsvn->svn->format($line['line']) . ' |
';
}
echo '
';
}
echo '
';
}
/*=====================================================================*\
|| ###################################################################
|| # $HeadURL$
|| # $Id$
|| ###################################################################
\*=====================================================================*/
?>