Changeset 818 for trunk


Ignore:
Timestamp:
Aug 9, 2009, 5:27:34 AM (12 years ago)
Author:
Peter Johansson
Message:

fixes #161 and also fixes a bug relate with partial cache in BlameStats. Added two revisions in test repository.

Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/BlameStats.cc

    r803 r818  
    9696    }
    9797   
    98     // filling in pristine revisions
     98    // filling in pristine revisions, i.e., revs that are larger than
     99    // first_rev and not occuring in revs.
    99100    RevSet::iterator rev_iter=revs.begin();
    100     for (svn_revnum_t rev = first_rev; rev<=revision(); ++rev){
    101       if (rev==*rev_iter)
     101    svn_revnum_t rev = first_rev;
     102    while (rev<=revision()) {
     103      if (rev_iter!=revs.end() && rev>*rev_iter)
    102104        ++rev_iter;
     105      else if (rev_iter!=revs.end() && rev==*rev_iter) {
     106        ++rev_iter;
     107        ++rev;
     108      }
    103109      else {
    104110        fill_in(code_stats(),rev);
     
    106112        fill_in(other_stats(),rev);
    107113        fill_in(copyright_stats(),rev);
     114        ++rev;
    108115      }
    109116    }
  • trunk/lib/Configuration.cc

    r815 r818  
    187187        }
    188188      }
     189      else if (section == "author-color") {
     190        author_color_[lhs] = rhs;
     191      }     
    189192      else if (section == "parsing-codons") {
    190193        if (!parsing_found) {
     
    464467
    465468    os << "\n"
     469       << "### Section for author color in blame output\n"
     470       << "[author-color]\n"
     471       << "# jdoe = 000000\n";
     472    typedef std::map<std::string,std::string> str_map;
     473    for (str_map::const_iterator i(conf.author_color_.begin());
     474         i!=conf.author_color_.end(); ++i) {
     475      os << i->first << " = " << i->second << " \n";
     476    }
     477
     478    os << "\n"
    466479       << "### Section for setting trac environment\n"
    467480       << "[trac]\n"
  • trunk/test/repo/db/current

    r793 r818  
    1 62 1q 4
     164 1y 4
Note: See TracChangeset for help on using the changeset viewer.