// 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))
$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'],
);
}
- $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