From e67088d1c98a418f6d18a4585a87df78c9540c79 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 29 Aug 2005 00:49:49 +0000 Subject: [PATCH] diff to HEAD only if we're not on HEAD --- browse.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/browse.php b/browse.php index 3555d10..1b61fcf 100644 --- a/browse.php +++ b/browse.php @@ -24,11 +24,11 @@ $prev = $viewsvn->svn->common->fetch_prev_rev($path, $viewsvn->paths->fetch_rev_ if ($viewsvn->svn->common->fetch_head_rev($path) != $viewsvn->paths->fetch_rev_num() AND $viewsvn->paths->fetch_rev_num() != 'HEAD') { - echo 'Go to HEAD'; + echo 'Go to HEAD' . + ' - Diff to HEAD'; } -echo ' - Diff to HEAD' . -($prev != -1 ? ' - Diff to PREV' : '') . +echo ($prev != -1 ? ' - Diff to PREV' : '') . ' - View Log'; echo '
' . print_r($viewsvn->svn->common->fetch_log($path, $viewsvn->paths->fetch_rev_num()), true) . '
'; -- 2.43.5