Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, October 15, 2026

Diff for scripts/php/parsecvs/parsecvs.php between version 1.23 and 1.24

version 1.23, 2002/06/16 15:45:25 version 1.24, 2002/06/17 07:48:49
Line 18 
Line 18 
         $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
Line 151 
Line 155 
         $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];
Line 187 
Line 191 
                 $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
Line 220 
Line 227 
   
                 // 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']);
                                   
Line 251 
Line 264 
                                         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++;

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top