Changeset 1238 for trunk/lib/Node.cc
- Timestamp:
- Oct 24, 2010, 12:05:25 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Node.cc
r1234 r1238 309 309 310 310 311 void Node::print_copyright(std::map<std::string,Alias>& alias,312 bool verbose) const313 {314 // map with last rev for every year315 std::map<int, svn_revnum_t> year2rev;316 // get log for entire project317 SVNlog log(SVNinfo(path()).repos_root_url());318 typedef SVNlog::container::const_iterator LogIterator;319 for (LogIterator i=log.commits().begin(); i!=log.commits().end(); ++i){320 time_t sec = str2time(i->date());321 tm* timeinfo = gmtime(&sec);322 // ignore commits in repository not present in wc323 year2rev[timeinfo->tm_year] = std::min(i->revision(), last_changed_rev());324 }325 print_copyright(alias, verbose, year2rev);326 }327 328 329 311 const StatsCollection& Node::stats(void) const 330 312 {
Note: See TracChangeset
for help on using the changeset viewer.