2 /*=====================================================================*\
3 || ################################################################### ||
4 || # ViewSVN [#]version[#]
5 || # --------------------------------------------------------------- # ||
6 || # Copyright ©2002-[#]year[#] by Iris Studios, Inc. All Rights Reserved. # ||
7 || # This file may not be reproduced in any way without permission. # ||
8 || # --------------------------------------------------------------- # ||
9 || # User License Agreement at http://www.iris-studios.com/license/ # ||
10 || ################################################################### ||
11 \*=====================================================================*/
14 require_once('./global.php');
16 //$output = $viewsvn->svn->blame('bugtrack', '/trunk/index.php', 0);
18 // diff /bugtrack/trunk/index@351:359
20 $diff = new SVNDiff('bugtrack', '/trunk/', 314, 315);
25 <style type
="text/css">
30 background
-color
: #99EE99;
35 background
-color
: #EE9999;
40 font
: normal
11px monospace
;
47 foreach ($diff->fetch() AS $filename => $file)
49 echo '<h2>' . $filename . '</h2>';
51 foreach ($file AS $hunk)
53 echo '<table cellspacing="1" cellpadding="1" width="100%">';
55 foreach ($hunk AS $key => $line)
57 if ($key == 'hunk' AND isset($line['old']))
60 <tr style="background-color: #F7F7F7">
61 <td colspan="3"> </td>
66 if ($line['act'] == '+')
70 else if ($line['act'] == '-')
80 <tr style="background-color: #EEEEDD; border-width: 0px 1px 1px 0px">
81 <td>' . $line['oldlineno'] . '</td>
82 <td>' . $line['newlineno'] . '</td>
83 <td style="background-color: ' . $color . '">' . $viewsvn->svn
->format($line['line']) . '</td>
94 /*=====================================================================*\
95 || ###################################################################
98 || ###################################################################
99 \*=====================================================================*/