Changeset 1362 for trunk/lib/CopyrightStats.cc
- Timestamp:
- Jun 4, 2011, 5:42:45 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/CopyrightStats.cc
r1358 r1362 84 84 while (commit->revision() < first_rev) 85 85 ++commit; 86 assert(commit->revision() >= first_rev); 86 87 log_iterator end = log.commits().end(); 87 88 // loop over all commits … … 92 93 assert(yearrev!=year2rev.end()); 93 94 } 95 assert(yearrev!=year2rev.end()); 96 assert(yearrev->second >= commit->revision()); 94 97 95 // skip if author already has copyright for this year.96 std::map<int, std::set<Alias> >::const_iterator year_aliases =97 year2alias_.find(yearrev->first);98 99 SVNblame svn_blame(path_, commit->revision());100 LineTypeParser parser(path_);101 98 const std::string& name = commit->author(); 102 103 99 // find username in map of aliases 104 100 std::map<std::string, Alias>::iterator alias = … … 114 110 author2alias_[name] = a; 115 111 alias = author2alias_.find(name); 116 assert(alias!=author2alias_.end());117 112 } 113 assert(alias!=author2alias_.end()); 118 114 115 // skip if alias already has copyright for this year. 116 std::map<int, std::set<Alias> >::const_iterator year_aliases = 117 year2alias_.find(yearrev->first); 118 if (year_aliases!=year2alias_.end() 119 && year_aliases->second.count(alias->second)) 120 continue; 121 122 SVNblame svn_blame(path_, commit->revision()); 123 LineTypeParser parser(path_); 124 119 125 // loop over lines 120 126 while (svn_blame.valid()) {
Note: See TracChangeset
for help on using the changeset viewer.