]>
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(
18 require_once('./global.php');
20 $navbar = $viewsvn->paths
->construct_breadcrumb($path, false);
22 // ###################################################################
24 // this is NOT supposed to allow for revision ranges
25 $logs = new SVNLog($repos, $relpath, 0, $viewsvn->paths
->fetch_rev_num());
27 $isdir = $viewsvn->svn
->common
->isdir($path);
31 foreach ($logs->fetch() AS $log)
33 $prev = $viewsvn->svn
->common
->fetch_prev_rev($path, $log['rev']);
35 $link['view'] = (!$isdir ? $viewsvn->paths
->out('view.php' . $viewsvn->paths
->fetch_rev_str(false, $log['rev']), $path) : '');
36 $link['blame'] = $viewsvn->paths
->out('blame.php' . $viewsvn->paths
->fetch_rev_str(false, $log['rev']), $path);
38 $show['diffhead'] = $viewsvn->svn
->common
->fetch_head_rev($path) != $log['rev'];
39 if ($show['diffhead'])
41 $link['diffhead'] = $viewsvn->paths
->out('diff.php' . $viewsvn->paths
->fetch_rev_str(true, 'HEAD', $log['rev']), $path);
44 $show['diffprev'] = $prev != -1;
45 if ($show['diffprev'])
47 $link['diffprev'] = $viewsvn->paths
->out('diff.php' . $viewsvn->paths
->fetch_rev_str(true, $log['rev'], $prev), $path);
50 $log['message_clean'] = nl2br(htmlspecialchars($log['message']));
52 eval('$nodes .= "' . $template->fetch('log_node') . '";');
55 // ###################################################################
57 eval('$template->flush("' . $template->fetch('log') . '");');
59 /*=====================================================================*\
60 || ###################################################################
63 || ###################################################################
64 \*=====================================================================*/