cacheV now stores the right paths... this makes me very happy
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 22:16:04 +0000 (22:16 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 22:16:04 +0000 (22:16 +0000)
includes/cachev.php

index 0df7c93c08c107882e7bdf2a90aac40eca6c6dfd..13fc600e176848cb390a1d84bf45ede9e2e3844a 100644 (file)
@@ -351,7 +351,9 @@ class cacheV
                                );
                        }
                        
-                       $inserts['nodes'][] = "('$node[path]', '" . $node['kind'] . "', " . $node['commit']['revision'] . ", '" . $this->controller->registry->escape(serialize($loglist)) . "', '" . $this->controller->registry->escape(serialize($proplist["$node[path]"])) . "')";
+                       $path = str_replace($this->controller->repospath, '', $node['url']['value']);
+                       
+                       $inserts['nodes'][] = "('$path', '" . $node['kind'] . "', " . $node['commit']['revision'] . ", '" . $this->controller->registry->escape(serialize($loglist)) . "', '" . $this->controller->registry->escape(serialize($proplist["$path"])) . "')";
                }
                
                // insert _revs