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);
23 $prev = $viewsvn->svn
->common
->fetch_prev_rev($path, $viewsvn->paths
->fetch_rev_num());
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('browse.php' . $viewsvn->paths
->fetch_rev_str(false
, 'HEAD'), $path) . '">Go to HEAD</a>';
30 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 != -1 ?
' - <a href="/viewsvn/' . $viewsvn->paths
->out('diff.php' . $viewsvn->paths
->fetch_rev_str(true
, $prev), $path) . '">Diff to PREV</a>' : '') .
32 ' - <a href="/viewsvn/' . $viewsvn->paths
->out('log.php' . $viewsvn->paths
->fetch_rev_str(), $path) . '">View Log</a>';
34 echo '<pre>' . print_r($viewsvn->svn
->common
->fetch_log($path, $viewsvn->paths
->fetch_rev_num()), true
) . '</pre>';
36 $listing = $viewsvn->svn
->ls($repos, $relpath, @$viewsvn->in
['rev']);
41 foreach ($listing AS $item)
44 if ($item{ strlen($item) - 1 } == '/')
46 echo '<a href="/viewsvn/' . $viewsvn->paths
->out('browse.php' . $viewsvn->paths
->fetch_rev_str(), $path . $item) . '">' . $item . '</a>';
50 echo '<a href="/viewsvn/' . $viewsvn->paths
->out('log.php' . $viewsvn->paths
->fetch_rev_str(), $path . $item) . '">'. $item . '</a>';
51 echo ' - <a href="/viewsvn/' . $viewsvn->paths
->out('blame.php' . $viewsvn->paths
->fetch_rev_str(), $path . $item) . '">Blame</a>';
54 echo ' - <a href="/viewsvn/' . $viewsvn->paths
->out('log.php' . $viewsvn->paths
->fetch_rev_str(), $path . $item) . '">View Log</a>';
55 //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>';
63 /*=====================================================================*\
64 || ###################################################################
67 || ###################################################################
68 \*=====================================================================*/