Grr.. this whole last revision thing is annoying
authorRobert Sesek <rsesek@bluestatic.org>
Thu, 12 Jan 2006 18:21:46 +0000 (18:21 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Thu, 12 Jan 2006 18:21:46 +0000 (18:21 +0000)
includes/cachev.php

index 2053e28c3c040d061245e32c60091f1b343047bb..11bdcd94a18d7944fcac95d1f0283b95527f6626 100644 (file)
@@ -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