$repospath = $viewsvn->repos->fetch_path($repos, false);
- return $this->svn('log -r' . $hirev . ':' . $lorev . ' ' . $repospath . $path);
+ return $this->svn('log -v -r' . $hirev . ':' . $lorev . ' ' . $repospath . $path);
}
/**
$lastrev = $matches[1];
}
+ else if (preg_match('#^\s+([ADM])\s(.*)#', $line, $matches))
+ {
+ $this->logs["$lastrev"]['files'][] = array(
+ 'action' => $matches[1],
+ 'file' => $matches[2]
+ );
+ }
else
{
- $this->logs["$lastrev"]['message'] .= $line . "\n";
+ if (trim($line) != 'Changed paths:')
+ {
+ $this->logs["$lastrev"]['message'] .= $line . "\n";
+ }
}
}
echo "\n";
foreach ($log AS $key => $val)
{
- echo '<li>' . $key . ': ' . nl2br(htmlspecialchars($val)) . '</li>';
+ if ($key == 'files')
+ {
+ echo "\n";
+ echo '<li>files:</li>';
+ echo "\n";
+ echo '<ul>';
+ echo "\n";
+ foreach ($val AS $file)
+ {
+ echo '<li>' . $file['action'] . ' : ' . $file['file'] . '</li>';
+ echo "\n";
+ }
+ echo '</ul>';
+ echo "\n";
+ }
+ else
+ {
+ echo '<li>' . $key . ': ' . nl2br(htmlspecialchars($val)) . '</li>';
+ }
echo "\n";
}
echo '</ul>';