Changeset 664 for trunk/lib/AddStats.cc


Ignore:
Timestamp:
Jun 13, 2008, 3:23:51 AM (13 years ago)
Author:
Peter Johansson
Message:

fixes #292

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/AddStats.cc

    r657 r664  
    5555
    5656
    57   void AddStats::do_parse(const std::string& path)
     57  void AddStats::do_parse(const std::string& path, svn_revnum_t rev)
    5858  {
    5959    SVNlog log(path);
    60     typedef std::set<svn_revnum_t> RevSet;
     60    typedef std::set<svn_revnum_t, std::greater<svn_revnum_t> > RevSet;
    6161    RevSet revs;
    6262    std::transform(log.commits().begin(), log.commits().end(),
    6363                   std::inserter(revs, revs.begin()),
    6464                   std::mem_fun_ref(&Commitment::revision));
    65     for (RevSet::iterator rev_iter=revs.begin();rev_iter!=revs.end();++rev_iter){
     65    for (RevSet::iterator rev_iter=revs.begin();
     66         rev_iter!=revs.end() && *rev_iter>rev; ++rev_iter){
    6667      SVNblame svn_blame(path, *rev_iter);
    6768      LineTypeParser parser(path);
     
    7677    }
    7778   
    78     accumulate_stats();
     79    accumulate_stats(rev);
    7980  }
    8081
Note: See TracChangeset for help on using the changeset viewer.