Changeset 462
- Timestamp:
- Aug 21, 2007, 12:34:37 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r439 r462 31 31 - http://lev.thep.lu.se/trac/svndigest/query?milestone=0.7&order=id 32 32 33 version 0.6.2: 34 - http://trac.thep.lu.se/trac/svndigest/log/branches/0.6-stable?rev=459&stop_rev=438 35 - http://trac.thep.lu.se/trac/svndigest/query?milestone=0.6.2&order=id 36 33 37 version 0.6.1: 34 38 - http://trac.thep.lu.se/trac/svndigest/log/branches/0.6-stable?rev=437&stop_rev=417 -
trunk/NEWS
r439 r462 4 4 5 5 Version 0.7 (released DATE) 6 -7 6 8 A complete list of closed tickets can be found here 7 A complete list of closed tickets can be found here [[br]] 8 http://lev.thep.lu.se/trac/svndigest/query?status=closed&milestone=0.7 9 9 10 http://lev.thep.lu.se/trac/svndigest/query?status=closed&milestone=0.7 11 10 Version 0.6.2 (released 21 August 2007) 11 - Fixed issue with moving files across different file systems (ticket:251) 12 13 A complete list of closed tickets can be found here [[br]] 14 http://trac.thep.lu.se/trac/svndigest/query?status=closed&milestone=0.6.2 15 12 16 Version 0.6.1 (released 9 July 2007) 13 17 - changed refs to svndigest site to http://trac.thep.lu.se/trac/svndigest 14 - fixed lineover bug in blame output (#235)18 - fixed lineover bug in blame output (ticket:235) 15 19 16 A complete list of closed tickets can be found here 17 20 A complete list of closed tickets can be found here [[br]] 18 21 http://trac.thep.lu.se/trac/svndigest/query?status=closed&milestone=0.6.1 19 22 … … 21 24 - svn blame output 22 25 - reports for individual authors 23 - differentiating several line types26 - differentiating several line types 24 27 - support for TracLinks 25 28 - config file, see options `--config-file` and `--generate-config` 26 - support for automatic update of copyright statement 29 - support for automatic update of copyright statement 27 30 - Removed option flag '-rev' 28 31 - More file extensions supported for parsing. 29 30 A complete list of closed tickets can be found here31 32 33 A complete list of closed tickets can be found here [[br]] 32 34 http://trac.thep.lu.se/trac/svndigest/query?status=closed&milestone=0.6 33 35 34 36 Version 0.5 (released 7 September 2006) 35 36 37 38 39 40 37 - Added support for svndigest:ignore property. 38 - Creation of static svndigest binary is now supported, use 39 --enable-staticbin. 40 - Dates and time now refers to UTC. 41 - Statistics now differentiates between code, comments, and empty 42 lines. Improvements to this parsing is still needed. 41 43 42 44 Version 0.4 (released 12 August 2006) 43 45 - Project name changed from svnstat to svndigest. 44 46 45 47 Version 0.3 (released 10 August 2006) 46 47 48 49 50 48 - Improved the generated output. 49 - svnstat handles unexpected situations more gracefully (like 50 running svnstat on a tree that is not under subversion control, 51 trees with items that are not up to date). 52 - Proper version information is displayed using --version option. 51 53 52 54 Version 0.2 (released 12 March 2006) 53 54 55 - Improved web page presentation. 56 - Added option to plot changes against time or revision. 55 57 56 58 Version 0.1 (released 4 March 2006) 57 59 - First release. 58 60 59 61 ------------------------------------------------------------------- -
trunk/lib/File.cc
r452 r462 35 35 36 36 #include <cassert> 37 #include <cstdio> 37 38 #include <ctime> 38 39 #include <fstream> … … 366 367 stat(path().c_str(),&nodestat); 367 368 368 // finally move printed temporary file to original file 369 rename(tmpname, path().c_str()); 369 // finally copy temporary file to replace original file, and 370 // remove the temporary file 371 try { 372 copy_file(tmpname, path()); 373 } 374 catch (std::runtime_error e) { 375 // catch exception, cleanup, and rethrow 376 std::cerr << "File::print_copyright: Exception caught, " 377 << "removing temporary file " << tmpname << std::endl; 378 if (unlink(tmpname)) 379 throw runtime_error(std::string("File::print_copyright: ") + 380 "failed to unlink temporary file" + tmpname); 381 throw; 382 } 383 if (unlink(tmpname)) 384 throw runtime_error(std::string("File::print_copyright: ") + 385 "failed to unlink temporary file" + tmpname); 386 370 387 chmod(path().c_str(), nodestat.st_mode); 371 388 } -
trunk/lib/File.h
r452 r462 66 66 const Stats& parse(const bool verbose=false); 67 67 68 /** 69 @throw std::runtime_error when a file error is encountered 70 updating the copyrights. 71 */ 68 72 void print_copyright(std::map<std::string, Alias>&, bool verbose) const; 69 73 -
trunk/lib/first_page.cc
r452 r462 103 103 << "<tr><td>Smallest Revision:</td><td>" << log.revision()[0] 104 104 << "</td></tr>\n" 105 << "<tr><td> Biggest Revision:</td><td>" << log.revision().back()105 << "<tr><td>Largest Revision:</td><td>" << log.revision().back() 106 106 << "</td></tr>\n" 107 107 << "<tr><td>Revision Count:</td><td>" << log.revision().size() -
trunk/lib/html_utility.cc
r439 r462 122 122 os << "<li>"; 123 123 os << anchor(user+"/empty/"+path, "Other", level, 124 "View statistics of emptylines");124 "View statistics of other lines"); 125 125 os << "</li>" 126 126 << "</ul></div>" -
trunk/lib/utility.cc
r439 r462 2 2 3 3 /* 4 Copyright (C) 2006 Jari Häkkinen, Peter Johansson 5 Copyright (C) 2007 Peter Johansson 4 Copyright (C) 2006, 2007 Jari Häkkinen, Peter Johansson 6 5 7 6 This file is part of svndigest, http://trac.thep.lu.se/trac/svndigest … … 61 60 62 61 62 void copy_file(const std::string& source, const std::string& target) 63 { 64 std::ofstream o(target.c_str()); 65 std::ifstream i(source.c_str()); 66 while (i.good()) { 67 char ch=i.get(); 68 if (i.good()) 69 o.put(ch); 70 if (!o.good()) 71 throw std::runtime_error(std::string("copy_file: ") + 72 "writing target file failed '" + target + "'"); 73 } 74 if (!i.eof() && (i.bad() || i.fail())) // fail on everything except eof 75 throw std::runtime_error(std::string("copy_file: ") + 76 "error reading source file '" + source + "'"); 77 i.close(); o.close(); 78 } 79 80 63 81 std::string file_name(const std::string& full_path) 64 82 { -
trunk/lib/utility.h
r439 r462 5 5 6 6 /* 7 Copyright (C) 2005, 2006 Jari Häkkinen, Peter Johansson 8 Copyright (C) 2007 Peter Johansson 7 Copyright (C) 2005, 2006, 2007 Jari Häkkinen, Peter Johansson 9 8 10 9 This file is part of svndigest, http://trac.thep.lu.se/trac/svndigest … … 53 52 /// 54 53 int access_rights(const std::string& path,const std::string& bits); 54 55 /** 56 @brief Copy file \a source to \a target. 57 58 @throw std::runtime_error when read error of \a source or write 59 error for \a target is encountered. 60 */ 61 void copy_file(const std::string& source, const std::string& target); 55 62 56 63 ///
Note: See TracChangeset
for help on using the changeset viewer.