Changeset 530
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Stats.cc
r529 r530 179 179 continue; 180 180 std::vector<u_int>& vec=m[name]; 181 size_t revs=0; 182 is >> revs; 183 vec.reserve(revs); 184 while (vec.size() < revs && is.good()) { 185 u_int tmp; 186 is >> tmp; 187 vec.push_back(tmp); 181 svn_revnum_t rev=0; 182 while (rev < last_changed_rev() && is.good()) { 183 u_int count; 184 is >> count; 185 if ( rev+1 > static_cast<svn_revnum_t>(vec.size()) ) 186 vec.resize(rev+1); 187 vec[rev] = count; 188 is >> rev; 188 189 } 189 190 } … … 413 414 for (A2VConstIter i(m.begin()); i!=m.end(); ++i){ 414 415 os << i->first << "\n"; 415 os << i->second.size() << " "; 416 std::copy(i->second.begin(), i->second.end(), 417 std::ostream_iterator<u_int>(os, " ")); 416 os << i->second.front() << " "; 417 for (size_t j=1; j<i->second.size(); ++j) 418 if (i->second[j] != i->second[j-1]) 419 os << j << " " << i->second[j] - i->second[j-1] << " "; 420 os << last_changed_rev()+1 << " "; 418 421 } 419 422 } -
trunk/lib/Stats.h
r529 r530 169 169 // that all old cache files are obsolete. 170 170 inline std::string end_of_cache(void) const 171 {return "END OF OK CACHE FILE VERSION 2";}171 {return "END OF OK CACHE FILE VERSION 3";} 172 172 inline std::string code_cache(void) const {return "CACHE CODE";} 173 173 inline std::string comments_cache(void) const {return "CACHE COMMENTS";}
Note: See TracChangeset
for help on using the changeset viewer.