| version 1.23, 2002/06/16 15:45:25 |
version 1.24, 2002/06/17 07:48:49 |
|
|
| $mod_files_begin = '^Modified Files:';
|
$mod_files_begin = '^Modified Files:';
|
| $del_files_begin = '^Removed Files:';
|
$del_files_begin = '^Removed Files:';
|
| $in_file_list = "^(\t| )";
|
$in_file_list = "^(\t| )";
|
| |
$project_head = '--[ Project %s ]--';
|
| |
$project_head_folding_char = '-';
|
| |
$sub_projects_separator = "----\n";
|
| |
$log_message_folding = ' ';
|
|
|
|
| function my_array_walk($x) {
|
function my_array_walk($x) {
|
| // This will do array_unique() on third-level values of $x
|
// This will do array_unique() on third-level values of $x
|
|
|
| $i = 0;
|
$i = 0;
|
|
|
|
| // Merge recursively all reports into one array
|
// Merge recursively all reports into one array
|
| // eg. join reports with same name
|
// eg. join reports in same directory
|
| while ($i < sizeof($reports)) {
|
while ($i < sizeof($reports)) {
|
| unset($a);
|
unset($a);
|
| $a[$reports[$i]['directory']] = $reports[$i];
|
$a[$reports[$i]['directory']] = $reports[$i];
|
|
|
| $new_name = is_array($m['name']) ? join(', ', $m['name']) : $m['name'];
|
$new_name = is_array($m['name']) ? join(', ', $m['name']) : $m['name'];
|
|
|
|
| if (strcmp($new_name, $name)) {
|
if (strcmp($new_name, $name)) {
|
| fwrite($out, '--[ Project ' . $new_name . ' ]--');
|
// Print new project name
|
| fwrite($out, str_repeat('-', 70 - strlen($new_name) - 16));
|
fwrite($out, sprintf($project_head, $new_name));
|
| |
;
|
| |
fwrite($out, str_repeat($project_head_folding_char, 70 - strlen($new_name) - 16));
|
| fwrite($out, "\n");
|
fwrite($out, "\n");
|
| $name = $new_name;
|
$name = $new_name;
|
| }
|
}
|
| else {
|
else {
|
| fwrite($out, "----\n");
|
// Separate subdirectories of the same project
|
| |
fwrite($out, $sub_projects_separator);
|
| }
|
}
|
|
|
|
| // DIRECTORY
|
// DIRECTORY
|
|
|
|
|
|
| // MODIFIED FILES
|
// MODIFIED FILES
|
| if (is_array($m['added']) || is_array($m['modified']) ||
|
if (is_array($m['added']) || is_array($m['modified']) ||
|
| is_array($m['deleted']))
|
is_array($m['deleted'])) {
|
| fwrite($out, "Files:\n");
|
if ((count($m['added']) + count($m['modified']) +
|
| |
count($m['deleted'])) > 1)
|
| |
fwrite($out, "Files:\n");
|
| |
else
|
| |
fwrite($out, "File:\n");
|
| |
}
|
|
|
|
| |
// mod = mod - add
|
| if (is_array($m['added']) && is_array($m['modified']))
|
if (is_array($m['added']) && is_array($m['modified']))
|
| $m['modified'] = array_diff($m['modified'], $m['added']);
|
$m['modified'] = array_diff($m['modified'], $m['added']);
|
|
|
|
|
|
| unset($m['log_msg'][$l]);
|
unset($m['log_msg'][$l]);
|
| }
|
}
|
|
|
|
| fwrite($out, ' ' . implode("\n ",
|
fwrite($out, $log_message_folding .
|
| str_replace("\n", "\n ", $m['log_msg'])
|
implode("\n$log_message_folding",
|
| |
//str_replace("\n", "\n$log_message_folding", $m['log_msg'])
|
| |
$m['log_msg']
|
| ) . "\n");
|
) . "\n");
|
| }
|
}
|
| $i++;
|
$i++;
|