Changeset 282 for trunk/lib/Node.cc


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

refs #175

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.