Changeset 1136
- Timestamp:
- Jul 18, 2010, 9:18:58 PM (11 years ago)
- Location:
- trunk/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Configuration.cc
r1135 r1136 197 197 else if (equal_true(rhs)) 198 198 output_blame_information_ = true; 199 else { 200 throw Config_error(line, ""); 201 } 202 } 203 else if (lhs=="file") { 204 if (equal_false(rhs)) 205 output_file_ = false; 206 else if (equal_true(rhs)) 207 output_file_ = true; 199 208 else { 200 209 throw Config_error(line, ""); … … 496 505 image_anchor_format_ = "png"; 497 506 output_blame_information_ = true; 507 output_file_ = true; 498 508 } 499 509 … … 502 512 { 503 513 return output_blame_information_; 514 } 515 516 517 bool Configuration::output_file(void) const 518 { 519 return output_file_; 504 520 } 505 521 … … 536 552 << "blame-information = "; 537 553 if (conf.output_blame_information()) 554 os << "yes\n"; 555 else 556 os << "no\n"; 557 os << "# if true report will have pages for files and not only " 558 << "directories.\n" 559 << "file = "; 560 if (conf.output_file()) 538 561 os << "yes\n"; 539 562 else -
trunk/lib/Configuration.h
r1133 r1136 108 108 */ 109 109 bool output_blame_information(void) const; 110 111 /** 112 \return true (default) if we wanna output stats for file 113 */ 114 bool output_file(void) const; 110 115 111 116 /// … … 172 177 std::string image_format_; 173 178 bool output_blame_information_; 179 bool output_file_; 174 180 std::string trac_root_; 175 181 }; -
trunk/lib/Node.cc
r978 r1136 23 23 #include "Node.h" 24 24 25 #include "Configuration.h" 25 26 #include "Date.h" 26 27 #include "HtmlStream.h" … … 104 105 // there is no output for nodes when user has zero contribution 105 106 else if (user!="all" && !stats.lines(user)) 107 os << name(); 108 else if (!Configuration::instance().output_file() && !this->dir()) 106 109 os << name(); 107 110 else … … 195 198 { 196 199 if (ignore()) 200 return; 201 if (!Configuration::instance().output_file() && !this->dir()) 197 202 return; 198 203 if (verbose)
Note: See TracChangeset
for help on using the changeset viewer.