function cacheV(&$controller)
{
$this->controller =& $controller;
+ $this->set_hash();
}
// ###################################################################
*/
function set_hash()
{
- $this->hash = md5($this->controller->registry->repos->fetch_path($this->controller->registry->paths->repos));
+ $this->hash = md5($this->controller->repospath);
}
// ###################################################################
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);
*/
var $repos;
+ /**
+ * The full path to the repository
+ * @var string
+ * @access public
+ */
+ var $repospath;
+
/**
* Relative path in the repository
* @var string
// objects
$this->registry =& $viewsvn;
+ $this->repospath = $this->registry->repos->fetch_path($this->repos);
+
require_once('./includes/shellcmd.php');
$this->xquery = new Shell($this);