From b334c5dd92621d92faa7a13dde06437437285ed3 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 28 Aug 2005 22:24:12 +0000 Subject: [PATCH] Revisions cache is created from logs cache, prevents having to query twice --- includes/svnlib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/svnlib.php b/includes/svnlib.php index d05a01f..a35da19 100644 --- a/includes/svnlib.php +++ b/includes/svnlib.php @@ -358,9 +358,9 @@ class SVNCommon { if (!isset($this->revisions["$path"])) { - $log = new SVNLog($this->registry->paths->fetch_repos($path), $this->registry->paths->fetch_path($path), 0, 0); + $log = $this->fetch_logs($path); - $revs = array_keys($log->fetch()); + $revs = array_keys($log); $this->revisions["$path"] = array( 'HEAD' => $revs[0], -- 2.43.5