Change to storing $node['commit']['revision'] in _nodes pre-cachev
authorRobert Sesek <rsesek@bluestatic.org>
Thu, 12 Jan 2006 18:35:53 +0000 (18:35 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Thu, 12 Jan 2006 18:35:53 +0000 (18:35 +0000)
includes/cachev.php

index 11bdcd94a18d7944fcac95d1f0283b95527f6626..53b024d4756f4e1ee6f7dfac072043736bd0f12a 100644 (file)
@@ -308,7 +308,6 @@ class cacheV
                        $latestrev = -1;
                        foreach ($history['log']['logentry'] AS $log)
                        {
-                               //$latestrev = ($log['revision'] > $latestrev ? $log['revision'] : $latestrev);
                                $loglist["$log[revision]"] = array(
                                        'revision'      => $log['revision'],
                                        'author'        => $log['author']['value'],
@@ -317,7 +316,7 @@ class cacheV
                                );
                        }
                        
-                       $inserts['nodes'][] = "('$node[path]', '" . $node['kind'] . "', " . $node['revision'] . ", '" . $this->registry->escape(serialize($loglist)) . "', '" . $this->registry->escape(serialize($proplist["$node[path]"])) . "')";
+                       $inserts['nodes'][] = "('$node[path]', '" . $node['kind'] . "', " . $node['commit']['revision'] . ", '" . $this->registry->escape(serialize($loglist)) . "', '" . $this->registry->escape(serialize($proplist["$node[path]"])) . "')";
                }
                
                // insert _revs