Revisions cache is created from logs cache, prevents having to query twice
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 28 Aug 2005 22:24:12 +0000 (22:24 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 28 Aug 2005 22:24:12 +0000 (22:24 +0000)
includes/svnlib.php

index d05a01f0fa618a9bf705123c87054b5dd87a6761..a35da19f69d818357c61c4c2093d55a8c1778385 100644 (file)
@@ -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],