Changeset 533 for trunk


Ignore:
Timestamp:
Dec 26, 2007, 3:07:46 AM (14 years ago)
Author:
Peter Johansson
Message:

Adding a BlameStats to the StatsCollection?. Though BlameStats is not yet implemented but goes as a dummie (read ClassicStats?)

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/svndigest.cc

    r532 r533  
    174174    print_main_page(tree->name(), tree->log(), classic, tree->url());
    175175    // create structure StatsType/Author/LineType
    176     create_file_struct("classic/", classic);
     176    for (std::map<std::string, Stats*>::const_iterator i(stats.stats().begin());
     177         i!=stats.stats().end(); ++i)
     178      create_file_struct(i->first+std::string("/"), *i->second);
    177179    try {
    178180      tree->print(option->verbose());
  • trunk/lib/BlameStats.h

    r531 r533  
    4646
    4747  private:
    48     /// using compiler generated copy
    49 
    50     ///
    51     /// @brief adding a line to user from revision to the stats
    52     ///
    53     void add(const std::string& user, const u_int& revision,
    54              const Parser::line_type&);
    55 
    5648    void do_parse(const std::string&);
    5749
  • trunk/lib/StatsCollection.cc

    r532 r533  
    2424#include "StatsCollection.h"
    2525
     26#include "BlameStats.h"
    2627#include "ClassicStats.h"
    2728#include "Stats.h"
     
    4243  {
    4344    stats_["classic"] = new ClassicStats(path);
     45    stats_["blame"] = new BlameStats(path);
    4446  }
    4547
Note: See TracChangeset for help on using the changeset viewer.