From 00783b6f53d8a3b069d3bd675cccf1c972c99e9f Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 22 Jan 2006 22:36:49 +0000 Subject: [PATCH] Add support for single revision number passing --- diff.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/diff.php b/diff.php index ed3bfad..446ac9b 100644 --- a/diff.php +++ b/diff.php @@ -38,9 +38,16 @@ $link['log'] = $controller->href_compound('log.php'); // ################################################################### -$revs = Paths::fetch_rev_num(true); -$high = $revs['high']; -$low = $revs['low']; +if (isset($viewsvn->in['rev'])) +{ + $high = Paths::fetch_rev_num(false); +} +else +{ + $revs = Paths::fetch_rev_num(true); + $high = $revs['high']; + $low = $revs['low']; +} if ($high == 'HEAD') { -- 2.43.5