Ignore:
Timestamp:
Nov 24, 2008, 4:58:58 AM (13 years ago)
Author:
Peter Johansson
Message:

fixed some issues that addresses #338. Want to add some tests before allowing --ignore-cache and closing ticket:338.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/ClassicStats.cc

    r693 r703  
    6161  void ClassicStats::do_parse(const std::string& path, svn_revnum_t rev)
    6262  {
    63     // we only call blame once so we can ignore rev here
    6463    LineTypeParser parser(path);
    6564    SVNblame svn_blame(path);
    6665    while (svn_blame.valid()) {
    67       add(svn_blame.author(), svn_blame.revision(),
    68           parser.parse(svn_blame.line()));
     66      if (svn_blame.revision()>=rev) {
     67        add(svn_blame.author(), svn_blame.revision(),
     68            parser.parse(svn_blame.line()));
     69      }
    6970      svn_blame.next_line();
    7071    }
    71     accumulate_stats();
    72 
     72    accumulate_stats(rev);
    7373  }
    7474
Note: See TracChangeset for help on using the changeset viewer.