From e9b3e8db9e3f6281b3135209238408131c8fcb0b Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 22 Jan 2006 01:38:13 +0000 Subject: [PATCH] Chugging through the errors --- includes/cachev.php | 5 +++-- includes/node.php | 9 +++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/includes/cachev.php b/includes/cachev.php index 787103b..d2a5391 100644 --- a/includes/cachev.php +++ b/includes/cachev.php @@ -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); diff --git a/includes/node.php b/includes/node.php index 4922b23..70d5e93 100644 --- a/includes/node.php +++ b/includes/node.php @@ -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); -- 2.22.5