Changeset 304
- Timestamp:
- May 11, 2007, 10:42:04 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/svndigest.cc
r303 r304 71 71 exit(-1); 72 72 } 73 config.load(is); 73 try { 74 config.load(is); 75 } 76 catch (std::runtime_error e) { 77 std::cerr << e.what() << std::endl; 78 exit(-1); 79 } 74 80 is.close(); 75 81 } -
trunk/lib/Configuration.cc
r303 r304 84 84 std::stringstream mess; 85 85 mess << "svndigest: invalid config file: " 86 << "in copright-alias section " << key + "defined twice.";86 << "in copright-alias section " << key + " defined twice."; 87 87 throw std::runtime_error(mess.str()); 88 88 } … … 96 96 getline(ss, tmp); 97 97 std::string value = trim(tmp); 98 if (key=="trac-ticket"){99 std::cerr << "svndigest: warning: config variable trac-ticket "100 << "is deprecated. Use trac-root instead.\n";101 trac_root_ = value.substr(0,value.size()-7);102 }103 if (key=="trac-revision"){104 std::cerr << "svndigest: warning: config variable trac-revision "105 << "is deprecated. Use trac-root instead.\n";106 trac_root_ = value.substr(0,value.size()-10);107 }108 98 if (key=="trac-root") 109 99 trac_root_=value; 100 else { 101 std::stringstream mess; 102 mess << "svndigest: invalid config file: " 103 << "in trac section" << key + " is invalid option."; 104 throw std::runtime_error(mess.str()); 105 } 110 106 } 111 107 } -
trunk/lib/Configuration.h
r303 r304 50 50 51 51 /// 52 /// throw if stream is not a valid config 53 /// 52 54 /// @brief load configuration from stream 53 55 ///
Note: See TracChangeset
for help on using the changeset viewer.