From ae034828aa53aeb808f2dbff5440a2324f3912a3 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 22 Jan 2006 23:03:18 +0000 Subject: [PATCH] Switching over to the contextual revision number --- blame.php | 8 ++++---- browse.php | 10 +++++----- view.php | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/blame.php b/blame.php index a190d49..bcb1b43 100644 --- a/blame.php +++ b/blame.php @@ -34,17 +34,17 @@ $latest = $controller->cachev->fetch_node(); $link['log'] = $controller->href_compound('log.php'); -$show['head'] = ($latest['revision'] != $controller->revnum AND $controller->revnum != 'HEAD'); +$show['head'] = ($latest['revision'] != $controller->revctx); if ($show['head']) { $link['gohead'] = $controller->href_compound('blame.php', null, Paths::fetch_rev_str(false, 'HEAD')); - $link['diffhead'] = $controller->href_compound('diff.php', null, Paths::fetch_rev_str(true, 'HEAD', $contoller->revnum)); + $link['diffhead'] = $controller->href_compound('diff.php', null, Paths::fetch_rev_str(true, 'HEAD', $contoller->revctx)); } -$show['prev'] = ($prev = $controller->cachev->fetch_prev_revision($controller->revnum)); +$show['prev'] = ($prev = $controller->cachev->fetch_prev_revision($controller->revctx)); if ($show['prev']) { - $link['diffprev'] = $controller->href_compound('diff.php', null, Paths::fetch_rev_str(true, $controller->revnum, $prev)); + $link['diffprev'] = $controller->href_compound('diff.php', null, Paths::fetch_rev_str(true, $controller->revctx, $prev)); } // ################################################################### diff --git a/browse.php b/browse.php index 7e3a247..52b7a14 100644 --- a/browse.php +++ b/browse.php @@ -35,22 +35,22 @@ $latest = $controller->cachev->fetch_node(); $link['log'] = $controller->href_compound('log.php'); -$show['head'] = ($latest['revision'] != $controller->revnum AND $controller->revnum != 'HEAD'); +$show['head'] = ($latest['revision'] != $controller->revctx); if ($show['head']) { $link['gohead'] = $controller->href_compound('browse.php', null, Paths::fetch_rev_str(false, 'HEAD')); - $link['diffhead'] = $controller->href_compound('diff.php', null, Paths::fetch_rev_str(true, 'HEAD', $controller->revnum)); + $link['diffhead'] = $controller->href_compound('diff.php', null, Paths::fetch_rev_str(true, 'HEAD', $controller->revctx)); } -$show['prev'] = ($controller->cachev->fetch_prev_revision($controller->revnum) != -1); +$show['prev'] = ($controller->cachev->fetch_prev_revision($controller->revctx) != -1); if ($show['prev']) { - $link['diffprev'] = $controller->href_compound('diff.php', null, Paths::fetch_rev_str(false, $controller->revnum)); + $link['diffprev'] = $controller->href_compound('diff.php', null, Paths::fetch_rev_str(false, $controller->revctx)); } // ################################################################### -$revinfo = $controller->cachev->fetch_revision($latest['revision']); +$revinfo = $controller->cachev->fetch_revision($controller->revctx); $revinfo['message_clean'] = SVNCommon::format_log_message($revinfo['message']); $revinfo['date'] = SVNCommon::format_date_string($revinfo['dateline']); diff --git a/view.php b/view.php index 75ffd72..3838e1f 100644 --- a/view.php +++ b/view.php @@ -33,7 +33,7 @@ $latest = $controller->cachev->fetch_node(); $link['log'] = $controller->href_compound('log.php'); -$show['head'] = ($latest['revision'] != $controller->revnum AND $controller->revnum != 'HEAD'); +$show['head'] = ($latest['revision'] != $controller->revctx); if ($show['head']) { $link['gohead'] = $controller->href_compound('view.php', null, Paths::fetch_rev_str(false, 'HEAD')); -- 2.22.5