From f88ed4d01e1b09770af9b015da1e548a190d45be Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 11 Sep 2005 16:42:20 +0000 Subject: [PATCH] Show log information on diffs --- diff.php | 12 ++++++++++++ templates/default/diff.tpl | 19 ++++++++++++++++--- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/diff.php b/diff.php index f14bf07..f642c20 100644 --- a/diff.php +++ b/diff.php @@ -40,6 +40,18 @@ $revs = $viewsvn->paths->fetch_rev_num(true); $high = $revs['high']; $low = $revs['low']; +// ################################################################### + +$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), $viewsvn->repos->fetch_path($repos)); +} + +$log = $viewsvn->svn->common->fetch_log($path, $high); + +// ################################################################### + if ($high == 'HEAD') { $high = $viewsvn->svn->common->fetch_head_rev($path); diff --git a/templates/default/diff.tpl b/templates/default/diff.tpl index 49f408c..bfe1dd5 100644 --- a/templates/default/diff.tpl +++ b/templates/default/diff.tpl @@ -8,12 +8,25 @@ $headinclude $header -$navbar +
+ $navbar + + + ( + View Full Changeset - + View Log + ) + +
+
+
Revision: $log[rev]
+
Author: $log[author]
+
Date: $log[date] $log[timezone]
+
Message: $log[message]
+

-View Log - $changes $footer \ No newline at end of file -- 2.43.5