Changeset 1254
- Timestamp:
- Nov 1, 2010, 12:20:34 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/svndigest.cc
r1234 r1254 30 30 #include "lib/html_utility.h" 31 31 #include "lib/main_utility.h" 32 #include "lib/NodeCounter.h" 32 33 #include "lib/rmdirhier.h" 33 34 #include "lib/Stats.h" … … 123 124 option.report()); 124 125 tree.traverse(visitor); 125 // const StatsCollection& stats(tree.parse(option.verbose(),126 // option.ignore_cache()));126 NodeCounter file_count; 127 tree.traverse(file_count); 127 128 128 129 if (option.report()) 129 print_main_page(tree.name(), tree.log(), tree.stats(), tree.url()); 130 print_main_page(tree.name(), tree.log(), tree.stats(), tree.url(), 131 file_count); 130 132 131 133 } -
trunk/lib/Makefile.am
r1234 r1254 35 35 Graph.h \ 36 36 HtmlBuf.h HtmlStream.h html_utility.h LineTypeParser.h \ 37 main_utility.h Node.h Node Visitor.h \37 main_utility.h Node.h NodeCounter.h NodeVisitor.h \ 38 38 OptionVersion.h rmdirhier.h \ 39 39 Stats.h StatsCollection.h subversion_info.h \ … … 48 48 Functor.cc Graph.cc HtmlBuf.cc HtmlStream.cc \ 49 49 html_utility.cc LineTypeParser.cc main_utility.cc Node.cc \ 50 OptionVersion.cc \50 NodeCounter.cc OptionVersion.cc \ 51 51 rmdirhier.cc Stats.cc StatsCollection.cc subversion_info.cc SVN.cc \ 52 52 SVNblame.cc SVNdiff.cc SvndigestVisitor.cc SVNinfo.cc \ -
trunk/lib/first_page.cc
r1253 r1254 31 31 #include "HtmlStream.h" 32 32 #include "html_utility.h" 33 #include "NodeCounter.h" 33 34 #include "Stats.h" 34 35 #include "StatsCollection.h" … … 52 53 53 54 void print_main_page(const std::string& dir, const SVNlog& log, 54 const StatsCollection& stats, std::string url) 55 const StatsCollection& stats, std::string url, 56 const NodeCounter& node_counter) 55 57 { 56 58 std::string filename="index.html"; … … 73 75 74 76 print_summary_plot(os, stats["classic"]); 75 print_general_information(os, log, authors.size(), url );77 print_general_information(os, log, authors.size(), url, node_counter); 76 78 sort(latest_commit.begin(), latest_commit.end(), GreaterRevision()); 77 79 print_authors(os, latest_commit, stats["classic"]); … … 83 85 84 86 void print_general_information(std::ostream& os, const SVNlog& log, 85 size_t nof_authors, std::string url) 87 size_t nof_authors, std::string url, 88 const NodeCounter& node_counter) 86 89 { 87 90 assert(log.commits().size()); … … 116 119 << "</td></tr>\n" 117 120 << "<tr><td>Number of Authors:</td><td>" << nof_authors 121 << "</td></tr>\n" 122 << "<tr><td>Number of Directories:</td><td>" 123 << node_counter.directories() 124 << "</td></tr>\n" 125 << "<tr><td>Number of Files:</td><td>" 126 << node_counter.files() 118 127 << "</td></tr>\n" 119 128 << "</tbody>\n" -
trunk/lib/first_page.h
r978 r1254 32 32 33 33 class Commitment; 34 class NodeCounter; 34 35 class Stats; 35 36 class StatsCollection; … … 44 45 /// 45 46 void print_general_information(std::ostream&, const SVNlog&, size_t, 46 std::string url );47 std::string url, const NodeCounter&); 47 48 48 49 /// … … 50 51 /// 51 52 void print_main_page(const std::string&, const SVNlog&, 52 const StatsCollection&, std::string url); 53 const StatsCollection&, std::string url, 54 const NodeCounter&); 53 55 54 56 void print_recent_logs(std::ostream&, const SVNlog& log,
Note: See TracChangeset
for help on using the changeset viewer.