- Timestamp:
- May 17, 2007, 2:06:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/svndigest.cc
r312 r315 37 37 #include "utility.h" 38 38 39 #include <cassert> 39 40 #include <iostream> 40 41 #include <fstream> … … 132 133 if (option->verbose()) 133 134 std::cout << "Building directory tree" << std::endl; 134 Directory tree(0,option->root(),""); 135 Directory* tree=NULL; 136 try { 137 tree = new Directory(0,option->root(),""); 138 } 139 catch (NodeException e) { 140 std::cerr << "svndigest: " << e.what() << std::endl; 141 } 142 assert(tree); 143 135 144 if (option->verbose()) 136 145 std::cout << "Parsing directory tree" << std::endl; 137 146 Stats stats(option->root()); 138 stats+=tree .parse(option->verbose());147 stats+=tree->parse(option->verbose()); 139 148 140 149 // Retrieve commit dates etc from SVNlog. … … 162 171 GnuplotFE::instance()->set_dates(svnlog.date()); 163 172 chdir(option->targetdir().c_str()); 164 mkdir(tree .name());165 chdir(tree .name().c_str());173 mkdir(tree->name()); 174 chdir(tree->name().c_str()); 166 175 GnuplotFE::instance()->command(std::string("cd '")+option->targetdir()+"/" 167 +tree .name()+"'");176 +tree->name()+"'"); 168 177 print_css("svndigest.css"); 169 178 SVNlog local_log(option->root()); 170 print_main_page(tree .name(), local_log, stats,179 print_main_page(tree->name(), local_log, stats, 171 180 SVNinfo(option->root()).url()); 172 181 mkdir("all"); … … 180 189 } 181 190 try { 182 tree .print(option->verbose());191 tree->print(option->verbose()); 183 192 } 184 193 catch (const std::runtime_error& x) { … … 191 200 std::cout << "Updating copyright statements" << std::endl; 192 201 std::map<std::string, Alias> alias(config.copyright_alias()); 193 tree .print_copyright(alias);202 tree->print_copyright(alias); 194 203 } 195 204 catch (const std::runtime_error& x) { … … 202 211 203 212 delete option; 213 delete tree; 204 214 if (option->verbose()) 205 215 std::cout << "Done!" << std::endl;
Note: See TracChangeset
for help on using the changeset viewer.