Changeset 259
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Directory.cc
r258 r259 133 133 const SVNlog& log) const 134 134 { 135 135 136 std::string outdir = user+"/"+line_type+"/"+local_path_; 136 137 if (local_path_=="") … … 160 161 os << imagedir << "/index.png"; 161 162 os << "' alt='[plot]' border=0><br>\n"; 163 os << "<h3>File Summary"; 164 if (user!="all") 165 os << " for " << user; 166 os << "</h3>"; 162 167 os << "<table class=\"listings\">\n"; 163 168 os << "<thead>"; -
trunk/lib/File.h
r258 r259 62 62 63 63 /// 64 /// printing all pages related to this file65 ///66 void print(const bool verbose=false) const;67 68 ///69 64 /// print blame output 70 65 /// -
trunk/lib/Node.cc
r258 r259 149 149 const SVNlog& log) const 150 150 { 151 os << "<h4>Author Summary</h4>"; 151 152 os << "<table class=\"listings\">\n"; 152 153 os << "<thead>"; … … 162 163 os << "<tbody>"; 163 164 164 os << "<tr class=\"light\">\n"; 165 os << "<td class=\"directory\" colspan=\"5\">"; 166 if (!dir()) 165 std::string color("light"); 166 if (!dir()) { 167 os << "<tr class=\"" << color << "\">\n"; 168 os << "<td class=\"directory\" colspan=\"5\">"; 167 169 os << anchor("index.html", "../"); 168 os << "</td>\n</tr>\n"; 169 170 os << "</td>\n</tr>\n"; 171 } 172 170 173 // print authors 171 std::string color("dark");174 const std::string timefmt("%e/%m/%y %H:%M:%S"); 172 175 for (std::set<std::string>::const_iterator i=stats_.authors().begin(); 173 176 i!=stats_.authors().end(); ++i){ 177 if (color=="dark") 178 color="light"; 179 else 180 color="dark"; 174 181 os << "<tr class=\"" << color << "\"><td>"; 175 182 if (dir()) … … 186 193 << "</td><td>" << stats_.code(*i) 187 194 << "</td><td>" << stats_.comments(*i) 188 << "</td><td>" << stats_.empty(*i) 189 << "</td><td>" 190 << "</td><td>" 195 << "</td><td>" << stats_.empty(*i); 196 Commitment lc(log.latest_commit(*i)); 197 os << "</td>" << "<td>" << lc.revision() 198 << "</td>" << "<td>" << lc.date()(timefmt) 191 199 << "</td></tr>\n"; 192 if (color=="dark")193 color="light";194 else195 color="dark";196 200 } 197 201 … … 209 213 os << "<td>" << stats_.comments() << "</td>\n"; 210 214 os << "<td>" << stats_.empty() << "</td>\n"; 211 os << "<td>" << "" << "</td>\n"; 212 os << "<td>" << "" << "</td>\n"; 215 Commitment lc(log.latest_commit()); 216 os << "<td>" << lc.revision() << "</td>\n"; 217 os << "<td>" << lc.date()(timefmt)<< "</td>\n"; 213 218 os << "</tr>\n"; 214 219 os << "</table>\n"; -
trunk/lib/SVNlog.cc
r256 r259 51 51 52 52 53 Commitment SVNlog::latest_commit(void) const 54 { 55 return Commitment(author().back(), Date(date().back()), 56 message().back(), revision().back()); 57 58 } 59 60 53 61 Commitment SVNlog::latest_commit(std::string name) const 54 62 { … … 58 66 if (!dist) { 59 67 Commitment c; 68 assert(false); 60 69 return c; 61 70 } -
trunk/lib/SVNlog.h
r256 r259 79 79 80 80 /** 81 \return Latest commit 82 */ 83 Commitment latest_commit(void) const; 84 85 /** 81 86 \return Latest commit \a author did. If no author is found an 82 87 empty Commitment (default constructor) is returned.
Note: See TracChangeset
for help on using the changeset viewer.