Changeset 503
- Timestamp:
- Nov 27, 2007, 1:56:57 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/svndigest.cc
r497 r503 111 111 std::string target_path=option->targetdir() + '/' + file_name(option->root()); 112 112 bool need_to_erase_target = node_exist(target_path); 113 if (need_to_erase_target && !option->force()) 114 throw std::runtime_error(std::string("svndigest: directory (") + 115 target_path + ") already exists"); 113 if (need_to_erase_target && !option->force()) { 114 std::cerr << "svndigest: directory `" 115 << target_path << "' already exists\n"; 116 exit(-1); 117 } 116 118 117 119 // Extract repository location -
trunk/lib/Date.cc
r439 r503 116 116 std::stringstream sstream(str); 117 117 struct tm* timeinfo = std::localtime(&time_); 118 size_t timezone_correction = timeinfo->tm_gmtoff; 118 119 119 120 u_int year, month, day, hour, minute, second; … … 144 145 145 146 time_ = mktime(timeinfo); 146 time_ += time info->tm_gmtoff;147 time_ += timezone_correction; 147 148 } 148 149
Note: See TracChangeset
for help on using the changeset viewer.