]>
src.bluestatic.org Git - viewsvn.git/blob - log.php
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 $fetchtemplates = array(
19 require_once('./global.php');
21 $navbar = $viewsvn->paths
->construct_breadcrumb($path, false);
23 // ###################################################################
25 // this is NOT supposed to allow for revision ranges
26 $logs = new SVNLog($repos, $relpath, 0, $viewsvn->paths
->fetch_rev_num());
28 $isdir = $viewsvn->svn
->common
->isdir($path);
32 foreach ($logs->fetch() AS $log)
36 $prev = $viewsvn->svn
->common
->fetch_prev_rev($path, $log['rev']);
38 $link['view'] = (!$isdir ? $viewsvn->paths
->out('view.php' . $viewsvn->paths
->fetch_rev_str(false, $log['rev']), $path) : '');
39 $link['blame'] = $viewsvn->paths
->out('blame.php' . $viewsvn->paths
->fetch_rev_str(false, $log['rev']), $path);
41 $show['diffhead'] = $viewsvn->svn
->common
->fetch_head_rev($path) != $log['rev'];
42 if ($show['diffhead'])
44 $link['diffhead'] = $viewsvn->paths
->out('diff.php' . $viewsvn->paths
->fetch_rev_str(true, 'HEAD', $log['rev']), $path);
47 $show['diffprev'] = $prev != -1;
48 if ($show['diffprev'])
50 $link['diffprev'] = $viewsvn->paths
->out('diff.php' . $viewsvn->paths
->fetch_rev_str(true, $log['rev'], $prev), $path);
53 foreach ($log AS $key => $val)
57 $val = $viewsvn->svn
->format($val);
58 eval('$props .= "' . $template->fetch('log_prop') . '";');
62 eval('$nodes .= "' . $template->fetch('log_node') . '";');
65 // ###################################################################
67 eval('$template->flush("' . $template->fetch('log') . '");');
69 /*=====================================================================*\
70 || ###################################################################
73 || ###################################################################
74 \*=====================================================================*/