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/BlameStats.cc

    r657 r664  
    7676
    7777
    78   void BlameStats::do_parse(const std::string& path)
     78  void BlameStats::do_parse(const std::string& path, svn_revnum_t first_rev)
    7979  {
    8080    SVNlog log(path);
    81     typedef std::set<svn_revnum_t> RevSet;
     81    typedef std::set<svn_revnum_t, std::greater<svn_revnum_t> > RevSet;
    8282    RevSet revs;
    8383    std::transform(log.commits().begin(), log.commits().end(),
    8484                   std::inserter(revs, revs.begin()),
    8585                   std::mem_fun_ref(&Commitment::revision));
    86     for (RevSet::iterator rev_iter=revs.begin();rev_iter!=revs.end();++rev_iter){
     86    for (RevSet::iterator rev_iter=revs.begin();
     87         rev_iter!=revs.end() && *rev_iter>first_rev; ++rev_iter){
    8788      SVNblame svn_blame(path, *rev_iter);
    8889      LineTypeParser parser(path);
     
    9798    // filling in pristine revisions
    9899    RevSet::iterator rev_iter=revs.begin();
    99     for (svn_revnum_t rev = 1; rev<=revision(); ++rev){
     100    for (svn_revnum_t rev = first_rev+1; rev<=revision(); ++rev){
    100101      if (rev==*rev_iter)
    101102        ++rev_iter;
Note: See TracChangeset for help on using the changeset viewer.