- Timestamp:
- May 17, 2007, 12:58:04 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/svndigest.cc
r304 r312 168 168 print_css("svndigest.css"); 169 169 SVNlog local_log(option->root()); 170 print_main_page(tree.name(), local_log, stats); 170 print_main_page(tree.name(), local_log, stats, 171 SVNinfo(option->root()).url()); 171 172 mkdir("all"); 172 173 mkdir("images"); -
trunk/lib/SVNinfo.cc
r149 r312 48 48 49 49 info_receiver_baton* irb=static_cast<struct info_receiver_baton*>(baton); 50 if (info->URL) 51 irb->url_=info->URL; 50 52 if (info->repos_root_URL) 51 53 irb->repos_root_url_=info->repos_root_URL; -
trunk/lib/SVNinfo.h
r165 r312 56 56 57 57 /// 58 /// @brief Get the URL. 59 /// 60 inline std::string url(void) const 61 { return info_receiver_baton_.url_; } 62 63 /// 58 64 /// @brief Get the author of the latest commit. 59 65 /// … … 91 97 struct info_receiver_baton { 92 98 // more info is available but we only use these 99 std::string url_; 93 100 std::string repos_root_url_; 94 101 std::string last_changed_author_; -
trunk/lib/first_page.cc
r311 r312 51 51 52 52 void print_main_page(const std::string& dir, const SVNlog& log, 53 const Stats& stats )53 const Stats& stats, std::string url) 54 54 { 55 55 std::string filename="index.html"; … … 69 69 latest_commit.push_back(log.latest_commit(*i)); 70 70 71 print_general_information(os, log, authors.size() );71 print_general_information(os, log, authors.size(), url); 72 72 sort(latest_commit.begin(), latest_commit.end(), GreaterRevision()); 73 73 print_authors(os, latest_commit, stats); … … 80 80 81 81 void print_general_information(std::ostream& os, const SVNlog& log, 82 size_t nof_authors )82 size_t nof_authors, std::string url) 83 83 { 84 84 Date begin(log.date()[0]); … … 93 93 << "General Information" 94 94 << "</th></tr></thead>\n" 95 << "<tr><td>URL:</td><td>" 96 << url << "</td></tr>\n" 95 97 << "<tr><td>First Revision:</td><td>" 96 98 << begin(timefmt) << "</td></tr>\n" -
trunk/lib/first_page.h
r285 r312 43 43 /// called by print_main_page 44 44 /// 45 void print_general_information(std::ostream&, const SVNlog&, size_t); 45 void print_general_information(std::ostream&, const SVNlog&, size_t, 46 std::string url); 46 47 47 48 /// 48 49 /// @brief print main page 49 50 /// 50 void print_main_page(const std::string&, const SVNlog&, const Stats&); 51 void print_main_page(const std::string&, const SVNlog&, const Stats&, 52 std::string url); 51 53 52 54 void print_recent_logs(std::ostream&, const SVNlog& log);
Note: See TracChangeset
for help on using the changeset viewer.