From a5eaba54bbe6d42942f943a129ccd29519db58e5 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 12 Jan 2006 18:21:46 +0000 Subject: [PATCH] Grr.. this whole last revision thing is annoying --- includes/cachev.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/cachev.php b/includes/cachev.php index 2053e28..11bdcd9 100644 --- a/includes/cachev.php +++ b/includes/cachev.php @@ -257,7 +257,6 @@ class cacheV // other part of _nodes: properties $output = $this->registry->svn->svn('proplist -v -R ' . ($revision !== null ? ' -r' . $revision . ':HEAD ' : '') . $this->registry->repos->fetch_path($this->registry->paths->repos)); - $index = null; foreach ($output AS $line) { if (preg_match('#^Properties on \'(.*?)\':$#', $line, $bits)) @@ -309,7 +308,7 @@ class cacheV $latestrev = -1; foreach ($history['log']['logentry'] AS $log) { - $latestrev = ($log['revision'] > $latestrev ? $log['revision'] : $latestrev); + //$latestrev = ($log['revision'] > $latestrev ? $log['revision'] : $latestrev); $loglist["$log[revision]"] = array( 'revision' => $log['revision'], 'author' => $log['author']['value'], @@ -318,7 +317,7 @@ class cacheV ); } - $inserts['nodes'][] = "('$node[path]', '" . $node['kind'] . "', $latestrev, '" . $this->registry->escape(serialize($loglist)) . "', '" . $this->registry->escape(serialize($proplist["$node[path]"])) . "')"; + $inserts['nodes'][] = "('$node[path]', '" . $node['kind'] . "', " . $node['revision'] . ", '" . $this->registry->escape(serialize($loglist)) . "', '" . $this->registry->escape(serialize($proplist["$node[path]"])) . "')"; } // insert _revs -- 2.43.5