Changeset 207 for trunk/bin


Ignore:
Timestamp:
Sep 11, 2006, 9:08:57 AM (15 years ago)
Author:
Peter Johansson
Message:

refs #41 and #44. Splitted print function in File and Directory to 2 functions. One public and one private. The private print a page for a specific author (or all) and specific code (or total), and the public calls this private function. Also added total number of commits #refs 87. NOTE the change of file structure forced all local paths to be relative from target/projectname rather than target as before.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/svndigest.cc

    r201 r207  
    136136  if (!option->revisions())
    137137    GnuplotFE::instance()->set_dates(commit_dates);
    138   GnuplotFE::instance()->command(std::string("cd '")+option->targetdir()+"'");
    139138  chdir(option->targetdir().c_str());
    140139  mkdir(tree.name());
    141   print_css(tree.name()+"/svndigest.css");
     140  chdir(tree.name().c_str());
     141  GnuplotFE::instance()->command(std::string("cd '")+option->targetdir()+"/"
     142                                 +tree.name()+"'");
     143  print_css("svndigest.css");
    142144  print_main_page(tree.name(), commit_dates);
    143   mkdir(tree.name()+"/all");
    144   mkdir(tree.name()+"/all/total");
     145  mkdir("all");
    145146  try {
    146     tree.print(tree.name()+"/all/total", option->verbose());
     147    tree.print(option->verbose());
    147148  }
    148149  catch (const std::runtime_error& x) {
Note: See TracChangeset for help on using the changeset viewer.