Changeset 60 for trunk/bin


Ignore:
Timestamp:
Jan 16, 2006, 11:03:04 AM (16 years ago)
Author:
Peter Johansson
Message:

plotting vs date rather than revision

Location:
trunk/bin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/Parameter.cc

    r54 r60  
    5757  void Parameter::analyse(void)
    5858  {
     59    // should check that root is a directory
    5960  }
    6061
  • trunk/bin/svnstat.cc

    r58 r60  
    22
    33#include "Parameter.h"
     4#include "CommitStat.h"
    45#include "Directory.h"
    56#include "Gnuplot.h"
     
    3435  }
    3536
    36   Directory tree(option.root());
    37   tree.purge();
    38   tree.parse();
     37  if (option.verbose())
     38    std::cout << "Parsing the log." << std::endl;
     39  CommitStat cs;
     40  cs.parse(option.root());
     41  Stats::gnuplot_pipe_.set_dates(cs.date());
     42 
     43  string prefix("svnstat_");
     44  Directory tree(option.root(),prefix);
     45  tree.purge(option.verbose());
     46  tree.parse(option.verbose());
    3947
    4048  Stats::gnuplot_pipe_.command(string("cd '")+option.targetdir()+"'");
    4149  chdir(option.targetdir().c_str());
    42   tree.print();
    43 
    44   string htmltopnode=option.root()+".html";
     50  try {
     51    tree.print(option.verbose());
     52  }
     53  catch (const std::runtime_error& x) {
     54    std::cerr << "svnstat: " << x.what() << std::endl;
     55  }
     56  string htmltopnode=tree.output_name()+".html";
    4557  symlink(htmltopnode.c_str(),"index.html");
    4658
Note: See TracChangeset for help on using the changeset viewer.