Chugging through the errors
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 01:38:13 +0000 (01:38 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 01:38:13 +0000 (01:38 +0000)
includes/cachev.php
includes/node.php

index 787103be66350fba52f3f461debab04dcf0db872..d2a5391eda09f6fa4921ca2e81649ba98b03103c 100644 (file)
@@ -73,6 +73,7 @@ class cacheV
        function cacheV(&$controller)
        {
                $this->controller =& $controller;
+               $this->set_hash();
        }
        
        // ###################################################################
@@ -83,7 +84,7 @@ class cacheV
        */
        function set_hash()
        {
-               $this->hash = md5($this->controller->registry->repos->fetch_path($this->controller->registry->paths->repos));
+               $this->hash = md5($this->controller->repospath);
        }
        
        // ###################################################################
@@ -222,7 +223,7 @@ class cacheV
                else
                {
                        // send an Xquery to SVN to see if we need to update
-                       $query = $this->controller->registry->svn->svn('info --xml ' . $this->controller->registry->repos->fetch_path($this->controller->registry->paths->repos));
+                       $query = $this->controller->library->svn('info --xml ' . $this->controller->repospath);
                        $query = implode("\n", $query);
                        
                        $tree = $this->controller->registry->xml->parse($query);
index 4922b2368ea4b110a73ba6e97bb361c94c3ab377..70d5e935d993db21652075013584658c96fb03fc 100644 (file)
@@ -77,6 +77,13 @@ class Node_Controller
        */
        var $repos;
        
+       /**
+       * The full path to the repository
+       * @var  string
+       * @access       public
+       */
+       var $repospath;
+       
        /**
        * Relative path in the repository
        * @var  string
@@ -107,6 +114,8 @@ class Node_Controller
                // objects
                $this->registry =& $viewsvn;
                
+               $this->repospath = $this->registry->repos->fetch_path($this->repos);
+               
                require_once('./includes/shellcmd.php');
                $this->xquery = new Shell($this);