- Timestamp:
- Apr 29, 2007, 12:53:22 AM (16 years ago)
- Location:
- branches/test-suite
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/test-suite/ChangeLog
r192 r247 22 22 ====================================================================== 23 23 24 24 version 0.6: 25 - Removed option flag '-rev' 26 25 27 version 0.5: 26 28 - Updated documentation. -
branches/test-suite/bin/Parameter.cc
r234 r247 73 73 } 74 74 } 75 else if (myargv=="- rev" || myargv=="--revisions") {75 else if (myargv=="--revisions") { 76 76 revisions_=true; 77 77 ok=true; … … 135 135 // return back to cwd 136 136 if (chdir(workdir.c_str())) 137 runtime_error(string("svndigest: Failed to access cwd: ") + workdir); 138 139 if (config_file_.empty()) 140 runtime_error(string("svndigest: Parameter --config-file requires argument.")); 141 137 throw runtime_error(string("svndigest: Failed to access cwd: ") + workdir); 138 139 } 140 141 142 std::string Parameter::config_file(void) const 143 { 144 // not default 145 if (!config_file_.empty()) 146 return config_file_; 147 148 // default behaviour 149 return root()+"/.svndigest/config"; 142 150 } 143 151 … … 145 153 void Parameter::defaults(void) 146 154 { 147 config_file_ = getenv("HOME")+"/.svndigest/config";155 config_file_ = ""; 148 156 copyright_=false; 149 157 force_=false; … … 163 171 cs.width(0)=68; 164 172 cs.margin(0)=2; 165 ColumnStream cs2(std::cout, 3);173 ColumnStream cs2(std::cout, 2); 166 174 cs2.width(0)=24; 167 cs2.width(1)=2; 168 cs2.width(2)=50; 175 cs2.width(2)=52; 169 176 cs2.margin(0)=2; 170 177 … … 180 187 std::cout << "\nValid options:\n"; 181 188 182 cs2 << " --copyright\t:\tupdate copyright statement\n"183 << " --config-file arg\t:\tconfiguration file ["184 << config_file_ << "]\n"185 << "-f [--force]\t:\tremove target directory/file if it exists "186 << " [no force].NOTE recursive delete.\n"187 << "-g [--generate-config]\t:\twrite configuration file "189 cs2 << " --copyright\tupdate copyright statement\n" 190 << " --config-file=ARG\tconfiguration file " 191 << "[<ROOT>/.svndigest/config]\n" 192 << "-f, --force\tremove target directory/file if it exists " 193 << "NOTE recursive delete.\n" 194 << "-g, --generate-config\twrite configuration file " 188 195 << "to standard output and exit\n" 189 << "-h [--help]\t:\tdisplay this help and exit\n"190 << "-r [--root] arg\t:\tsvn controlled directory to perform "196 << "-h, --help\tdisplay this help and exit\n" 197 << "-r, --root=ROOT\tsvn controlled directory to perform " 191 198 << "statistics calculation on [" << root_ << "]\n" 192 << " -rev [--revisions]\t:\tUse revision numbers as time scale "199 << " --revisions\tUse revision numbers as time scale " 193 200 << "instead of dates [dates].\n" 194 << "-t [--target] arg\t:\toutput directory [" << targetdir_ << "]\n"195 << "-v [--verbose]\t:\texplain what is being done\n"196 << " --version\t:\tprint version information and exit\n";201 << "-t, --target=TARGET\toutput directory [" << targetdir_ << "]\n" 202 << "-v, --verbose\texplain what is being done\n" 203 << " --version\tprint version information and exit\n"; 197 204 std::cout << std::endl; 198 205 } -
branches/test-suite/bin/Parameter.h
r229 r247 36 36 public: 37 37 Parameter(const int argc,const char *argv[]); 38 inline std::string config_file(void) const { return config_file_; }38 std::string config_file(void) const; 39 39 inline bool copyright(void) const { return copyright_; } 40 40 /// @todo -
branches/test-suite/lib/Directory.cc
r235 r247 171 171 os << "../../"; 172 172 if (user=="all") 173 os << stats_.plot(imagedir+"/index.png", l ocal_path(),line_type);173 os << stats_.plot(imagedir+"/index.png", line_type); 174 174 else 175 175 os << imagedir << "/index.png"; … … 182 182 os << "<th>Code</th>\n"; 183 183 os << "<th>Comments</th>\n"; 184 os << "<th> Empty</th>\n";184 os << "<th>Other</th>\n"; 185 185 os << "<th>Revision</th>\n"; 186 186 os << "<th>Author</th>\n"; -
branches/test-suite/lib/File.cc
r235 r247 74 74 os << "../../"; 75 75 if (user=="all") 76 os << stats_.plot(imagefile, local_path(),line_type);76 os << stats_.plot(imagefile,line_type); 77 77 else 78 78 os << imagefile; -
branches/test-suite/lib/Makefile.am
r237 r247 26 26 noinst_LTLIBRARIES = libsvndigest.la 27 27 28 noinst_HEADERS = ColumnStream.h Configuration.h 28 noinst_HEADERS = ColumnStream.h Configuration.h \ 29 29 Date.h Directory.h File.h Gnuplot.h GnuplotFE.h \ 30 30 HtmlStream.h html_utility.h Node.h Parser.h rmdirhier.h \ -
branches/test-suite/lib/Stats.cc
r213 r247 157 157 158 158 std::string Stats::plot(const std::string& filename, 159 const std::string& title,160 159 const std::string& linetype) const 161 160 { … … 163 162 gp->command("set term png"); 164 163 gp->command("set output '"+filename+"'"); 165 gp->command("set title '"+title+"'");166 164 gp->command("set xtics nomirror"); 167 165 gp->command("set ytics nomirror"); -
branches/test-suite/lib/Stats.h
r209 r247 97 97 /// Create statistics graph. 98 98 /// 99 std::string plot(const std::string&, const std::string&, 100 const std::string&) const; 99 std::string plot(const std::string&, const std::string&) const; 101 100 102 101 /// -
branches/test-suite/lib/html_utility.cc
r235 r247 366 366 else 367 367 os << "<li>"; 368 os << anchor(user+"/empty/"+path, " Empty", level,368 os << anchor(user+"/empty/"+path, "Other", level, 369 369 "View statistics of empty lines"); 370 370 os << "</li>"
Note: See TracChangeset
for help on using the changeset viewer.