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 $path = $viewsvn->paths
->parse();
16 $repos = $viewsvn->paths
->fetch_repos($path);
17 $relpath = $viewsvn->paths
->fetch_path($path);
19 echo $viewsvn->paths
->construct_breadcrumb($path, false
);
23 echo '<a href="/viewsvn/' . $viewsvn->paths
->out('log.php' . $viewsvn->paths
->fetch_rev_str(), $path) . '">View Log</a>';
25 if ($viewsvn->svn
->common
->fetch_head_rev($path) != $viewsvn->paths
->fetch_rev_num() AND $viewsvn->paths
->fetch_rev_num() != 'HEAD')
27 echo ' - <a href="/viewsvn/' . $viewsvn->paths
->out('view.php' . $viewsvn->paths
->fetch_rev_str(false
, 'HEAD'), $path) . '">Go to HEAD</a>';
28 echo ' - <a href="/viewsvn/' . $viewsvn->paths
->out('diff.php' . $viewsvn->paths
->fetch_rev_str(true
, 'HEAD', $viewsvn->paths
->fetch_rev_num()), $path) . '">Diff to HEAD</a>';
31 $prev = $viewsvn->svn
->common
->fetch_prev_rev($path, $viewsvn->paths
->fetch_rev_num());
34 echo ' - <a href="/viewsvn/' . $viewsvn->paths
->out('diff.php' . $viewsvn->paths
->fetch_rev_str(true
, $viewsvn->paths
->fetch_rev_num(), $prev), $path) . '">Diff to PREV</a>';
37 $logmsg = $viewsvn->svn
->common
->fetch_log($path, $viewsvn->paths
->fetch_rev_num());
38 unset($logmsg['files']);
39 echo '<pre>' . print_r($logmsg, true
) . '</pre>';
41 echo '<table cellspacing="1" cellpadding="1" style="background-color: #EFEFEF; font: 11px monospace" width="100%">
42 <tr style="background-color: white">
45 echo $viewsvn->svn
->format(implode("\n", $viewsvn->svn
->cat($repos, $relpath, @$viewsvn->in
['rev'])));
52 /*=====================================================================*\
53 || ###################################################################
56 || ###################################################################
57 \*=====================================================================*/