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/index.php', 351, 359);
22 echo '<table cellspacing="1" cellpadding="1" style="background-color: #EFEFEF" width="100%">';
24 foreach ($diff->fetch() AS $hunk)
27 foreach ($hunk AS $key => $line)
29 if ($key == 'hunk' AND isset($line['old']))
32 <tr style="background-color: grey">
33 <td colspan="3">' . print_r($line, true
) . '</td>
39 <tr style="background-color: white">
40 <td>' . $line['oldlineno'] . '</td>
41 <td>' . $line['newlineno'] . '</td>
42 <td>' . $viewsvn->svn
->format($line['line']) . '</td>
52 /*=====================================================================*\
53 || ###################################################################
56 || ###################################################################
57 \*=====================================================================*/