Changeset 282 for trunk


Ignore:
Timestamp:
May 6, 2007, 4:28:18 PM (14 years ago)
Author:
Peter Johansson
Message:

refs #175

Location:
trunk/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Node.cc

    r274 r282  
    194194         << "</td><td>" << stats_.comments(*i)
    195195         << "</td><td>" << stats_.empty(*i);
    196       Commitment lc(log.latest_commit(*i));
    197       os << "</td>" << "<td>" << trac_revision(lc.revision())
    198          << "</td>" << "<td>" << lc.date()(timefmt)
    199          << "</td></tr>\n";
     196      if (log.exist(*i)) {
     197        Commitment lc(log.latest_commit(*i));
     198        os << "</td>" << "<td>" << trac_revision(lc.revision())
     199           << "</td>" << "<td>" << lc.date()(timefmt);
     200      }
     201      else {
     202        os << "</td>" << "<td>N/A"
     203           << "</td>" << "<td>N/A";
     204      }
     205      os << "</td></tr>\n";
    200206    }
    201207
  • trunk/lib/SVNlog.cc

    r259 r282  
    5151
    5252 
     53  bool SVNlog::exist(std::string name) const
     54  {
     55    std::vector<std::string>::const_reverse_iterator iter =
     56      find(author().rbegin(), author().rend(), name);
     57    return iter!=author().rend();
     58  }
     59
     60
    5361  Commitment SVNlog::latest_commit(void) const
    5462  {
  • trunk/lib/SVNlog.h

    r259 r282  
    7373
    7474    /**
     75       \return true if \a author appears in log.
     76    */
     77    bool exist(std::string author) const;
     78
     79    /**
    7580       \return Messages
    7681    */
Note: See TracChangeset for help on using the changeset viewer.