Changeset 381 for trunk/lib/File.cc


Ignore:
Timestamp:
Jun 21, 2007, 10:43:17 PM (14 years ago)
Author:
Jari Häkkinen
Message:

SVNblame redesigned.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/File.cc

    r380 r381  
    9696    HtmlStream hs(os);
    9797    SVNblame blame(path_);
    98     while (const struct SVNblame::blame_information* bi=blame.next()) {
    99       os << "<tr>\n<td class=\"number\">" << bi->revision
    100          << "</td>\n<td class=\"date\">"  << Date(bi->date)("%e %b %y")
     98    while (blame.valid()) {
     99      os << "<tr>\n<td class=\"number\">" << blame.revision()
     100         << "</td>\n<td class=\"date\">"  << Date(blame.date())("%e %b %y")
    101101         << "</td>\n<td class=\"author\">";
    102       hs << bi->author;
    103       os << "</td>\n<td class=\"number\">" << bi->line_no+1
     102      hs << blame.author();
     103      os << "</td>\n<td class=\"number\">" << blame.line_no()+1
    104104         << "</td>\n<td class=\"code\">";
    105       hs << bi->line;
     105      hs << blame.line();
    106106      os << "</td>\n</tr>\n";
     107      blame.next_line();
    107108    }
    108109    os << "</tbody>\n";
Note: See TracChangeset for help on using the changeset viewer.