Changeset 642 for trunk/bin


Ignore:
Timestamp:
Jun 1, 2008, 1:39:01 AM (13 years ago)
Author:
Peter Johansson
Message:

transponating internal representation in SVNlog - rather than storing four vectors, a vector<Commitment> is stored. Removed LogIterator? class since it is not needed anymore.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/svndigest.cc

    r579 r642  
    160160    if (option->verbose())
    161161      std::cout << "Generating output" << std::endl;
    162     if (!option->revisions())
    163       GnuplotFE::instance()->set_dates(SVNlog(repo).date());
     162    if (!option->revisions()) {
     163      SVNlog log(repo);
     164      std::vector<std::string> dates;
     165      dates.reserve(log.commits().size());
     166      for (size_t i=0; i<log.commits().size(); ++i) {
     167        assert(static_cast<svn_revnum_t>(i)==log.commits()[i].revision());
     168        dates.push_back(log.commits()[i].date());
     169      }
     170      GnuplotFE::instance()->set_dates(dates);
     171    }
    164172    chdir(option->targetdir().c_str());
    165173    mkdir(tree->name());
Note: See TracChangeset for help on using the changeset viewer.