Changeset 759 for trunk/lib/Node.cc


Ignore:
Timestamp:
Jan 29, 2009, 12:51:35 PM (12 years ago)
Author:
Peter Johansson
Message:

Change container in SVNlog to be std::set<Commitment>, in order to
avoid copying in SVNlog::operator+=. Previously we had vector, but the
index had no meaning, in other words, the random access was not used.

refs #74

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Node.cc

    r757 r759  
    7878      return svninfo_.last_changed_author();
    7979    assert(log().commits().size());
    80     return log().commits().back().author();
     80    return log().latest_commit().author();
    8181  }
    8282
     
    145145      return svninfo_.last_changed_rev();
    146146    assert(log().commits().size());
    147     return log().commits().back().revision();
     147    return log().latest_commit().revision();
    148148  }
    149149
     
    318318    std::map<int, svn_revnum_t> year2rev;
    319319    SVNlog log(path());
    320     typedef std::vector<Commitment>::const_iterator LogIterator;
    321     for (LogIterator i=log.commits().begin(); i<log.commits().end(); ++i){
     320    typedef SVNlog::container::const_iterator LogIterator;
     321    for (LogIterator i=log.commits().begin(); i!=log.commits().end(); ++i){
    322322      time_t sec = str2time(i->date());
    323323      tm* timeinfo = gmtime(&sec);
Note: See TracChangeset for help on using the changeset viewer.