From 0208b85204d95c6949d127089df1dd9f5234fc08 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 11 Sep 2005 22:51:08 +0000 Subject: [PATCH] Full changeset link is now right --- diff.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/diff.php b/diff.php index ab7a503..2f57a53 100644 --- a/diff.php +++ b/diff.php @@ -41,12 +41,22 @@ $revs = $viewsvn->paths->fetch_rev_num(true); $high = $revs['high']; $low = $revs['low']; +if ($high == 'HEAD') +{ + $high = $viewsvn->svn->common->fetch_head_rev($path); +} + +if ($low == 0) +{ + $low = $viewsvn->svn->common->fetch_prev_rev($path, $high); +} + // ################################################################### $show['fullchangeset'] = ($viewsvn->paths->is_root_path($path) ? false : true); if ($show['fullchangeset']) { - $link['changeset'] = $viewsvn->paths->out('diff.php' . $viewsvn->paths->fetch_rev_str(true), $repos . '/'); + $link['changeset'] = $viewsvn->paths->out('diff.php' . $viewsvn->paths->fetch_rev_str(true, $high, $high - 1), $repos . '/'); } $log = $viewsvn->svn->common->fetch_log($path, $high); @@ -57,16 +67,6 @@ $files = $viewsvn->svn->common->construct_file_changes($log['files'], $repos, $h // ################################################################### -if ($high == 'HEAD') -{ - $high = $viewsvn->svn->common->fetch_head_rev($path); -} - -if ($low == 0) -{ - $low = $viewsvn->svn->common->fetch_prev_rev($path, $high); -} - $diff = new SVNDiff($repos, $relpath, $low, $high); $isdir = (bool)$viewsvn->svn->common->isdir($path); -- 2.43.5