Changeset 398
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/File.cc
r395 r398 26 26 #include "Alias.h" 27 27 #include "Date.h" 28 #include "GnuplotFE.h" 28 29 #include "html_utility.h" 29 30 #include "HtmlStream.h" … … 81 82 82 83 83 void File::print_blame(std::ofstream& os , const SVNlog& log) const84 void File::print_blame(std::ofstream& os) const 84 85 { 85 86 os << "<br><h3>Blame Information</h3>"; … … 96 97 HtmlStream hs(os); 97 98 SVNblame blame(path_); 98 assert( log.date().size());99 time_t last = Date( log.date().back()).seconds();99 assert(GnuplotFE::instance()->dates().size()); 100 time_t last = Date(GnuplotFE::instance()->dates().back()).seconds(); 100 101 // color is calculated linearly on time, c = kt + m 101 102 // brightest color (for oldest rev in log) is set to 192. 102 double k = 192.0/(Date( log.date()[0]).seconds()-last);103 double k = 192.0/(Date(GnuplotFE::instance()->dates()[0]).seconds()-last); 103 104 double m = -last*k; 104 105 while (blame.valid()) { … … 261 262 os << "</p>\n"; 262 263 263 print_blame(os , log);264 print_blame(os); 264 265 265 266 print_footer(os); -
trunk/lib/File.h
r395 r398 85 85 @brief Print blame output 86 86 */ 87 void print_blame(std::ofstream& os , const SVNlog& log) const;87 void print_blame(std::ofstream& os) const; 88 88 89 89 void print_core(bool verbose=false) const; -
trunk/lib/GnuplotFE.h
r165 r398 54 54 55 55 /// 56 /// @return input format for date.56 /// @return dates. 57 57 /// 58 // Peter, obsolete ? 59 const std::string& date_input_format(void) { return date_input_format_; } 58 const std::vector<std::string>& dates(void) const { return date_; } 60 59 61 60 ///
Note: See TracChangeset
for help on using the changeset viewer.