Ignore:
Timestamp:
Nov 21, 2008, 3:47:06 AM (13 years ago)
Author:
Peter Johansson
Message:

fixed bug in BlameStats - refs #338

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/BlameStats.cc

    r693 r700  
    7777  {
    7878    SVNlog log(path);
    79     typedef std::set<svn_revnum_t, std::greater<svn_revnum_t> > RevSet;
     79    typedef std::set<svn_revnum_t> RevSet;
    8080    RevSet revs;
    8181    std::transform(log.commits().begin(), log.commits().end(),
    8282                   std::inserter(revs, revs.begin()),
    8383                   std::mem_fun_ref(&Commitment::revision));
    84     for (RevSet::iterator rev_iter=revs.begin();
    85          rev_iter!=revs.end() && *rev_iter>first_rev; ++rev_iter){
     84    for (RevSet::reverse_iterator rev_iter=revs.rbegin();
     85         rev_iter!=revs.rend() && *rev_iter>first_rev; ++rev_iter){
    8686      SVNblame svn_blame(path, *rev_iter);
    8787      LineTypeParser parser(path);
Note: See TracChangeset for help on using the changeset viewer.