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 echo $viewsvn->paths
->construct_breadcrumb($path);
19 $prev = $viewsvn->svn
->common
->fetch_prev_rev($path, $viewsvn->paths
->fetch_rev_num());
21 if ($viewsvn->svn
->common
->fetch_head_rev($path) != $viewsvn->paths
->fetch_rev_num() AND $viewsvn->paths
->fetch_rev_num() != 'HEAD')
23 echo '<a href="/viewsvn/' . $viewsvn->paths
->out('browse.php' . $viewsvn->paths
->fetch_rev_str(false
, 'HEAD'), $path) . '">Go to HEAD</a>' .
24 ' - <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>';
27 echo ($prev != -1 ?
' - <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>' : '') .
28 ' - <a href="/viewsvn/' . $viewsvn->paths
->out('log.php' . $viewsvn->paths
->fetch_rev_str(), $path) . '">View Log</a>';
30 echo '<pre>' . print_r($viewsvn->svn
->common
->fetch_log($path, $viewsvn->paths
->fetch_rev_num()), true
) . '</pre>';
32 $listing = $viewsvn->svn
->ls($repos, $relpath, @$viewsvn->in
['rev']);
37 foreach ($listing AS $item)
40 if ($item{ strlen($item) - 1 } == '/')
42 echo '<a href="/viewsvn/' . $viewsvn->paths
->out('browse.php' . $viewsvn->paths
->fetch_rev_str(), $path . $item) . '">' . $item . '</a>';
46 echo '<a href="/viewsvn/' . $viewsvn->paths
->out('log.php' . $viewsvn->paths
->fetch_rev_str(), $path . $item) . '">'. $item . '</a>';
47 echo ' - <a href="/viewsvn/' . $viewsvn->paths
->out('blame.php' . $viewsvn->paths
->fetch_rev_str(), $path . $item) . '">Blame</a>';
50 echo ' - <a href="/viewsvn/' . $viewsvn->paths
->out('log.php' . $viewsvn->paths
->fetch_rev_str(), $path . $item) . '">View Log</a>';
51 //echo ' - <a href="/viewsvn/' . $viewsvn->paths->out('diff.php' . $viewsvn->paths->fetch_rev_str(true, $viewsvn->paths->fetch_rev_num()), $path . $item) . '">Diff to PREV</a>';
59 /*=====================================================================*\
60 || ###################################################################
63 || ###################################################################
64 \*=====================================================================*/