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 \*=====================================================================*/
13 require_once('./global.php');
15 $navbar = $viewsvn->paths
->construct_breadcrumb($path, false
);
17 // ###################################################################
19 $link['log'] = $viewsvn->paths
->out('log.php' . $viewsvn->paths
->fetch_rev_str(), $path);
21 $show['head'] = ($viewsvn->svn
->common
->fetch_head_rev($path) != $viewsvn->paths
->fetch_rev_num() AND $viewsvn->paths
->fetch_rev_num() != 'HEAD');
24 $link['gohead'] = $viewsvn->paths
->out('blame.php' . $viewsvn->paths
->fetch_rev_str(false
, 'HEAD'), $path);
25 $link['diffhead'] = $viewsvn->paths
->out('diff.php' . $viewsvn->paths
->fetch_rev_str(true
, 'HEAD', $viewsvn->paths
->fetch_rev_num()), $path);
28 $show['prev'] = (($prev = $viewsvn->svn
->common
->fetch_prev_rev($path, $viewsvn->paths
->fetch_rev_num())) != -1 ? true
: false
);
31 $link['diffprev'] = $viewsvn->paths
->out('diff.php' . $viewsvn->paths
->fetch_rev_str(true
, $viewsvn->paths
->fetch_rev_num(), $prev), $path);
34 // ###################################################################
36 $blame = new SVNBlame($repos, $relpath, $viewsvn->paths
->fetch_rev_num());
40 foreach ($blame->fetch() AS $entry)
42 $entry['line_clean'] = $viewsvn->svn
->format($entry['line']);
43 eval('$lines .= "' . $template->fetch('blame_line') . '";');
46 // ###################################################################
48 eval('$template->flush("' . $template->fetch('blame') . '");');
50 /*=====================================================================*\
51 || ###################################################################
54 || ###################################################################
55 \*=====================================================================*/