Changes from tags/0.6.1 at r1608 to tags/0.6.2 at r1608


Ignore:
Location:
tags/0.6.2
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • tags/0.6.2/ChangeLog

    r1608 r1608  
    2727of the logs, and the tickets assigned to the different versions.
    2828
     29version 0.6.2:
     30  - http://trac.thep.lu.se/trac/svndigest/log/branches/0.6-stable?rev=459&stop_rev=438
     31  - http://trac.thep.lu.se/trac/svndigest/query?milestone=0.6.2&order=id
     32
    2933version 0.6.1:
    3034  - http://trac.thep.lu.se/trac/svndigest/log/branches/0.6-stable?rev=437&stop_rev=417
  • tags/0.6.2/NEWS

    r1608 r1608  
    33See the end of this file for copyrights and conditions.
    44
     5Version 0.6.2 (released 21 August 2007)
     6  - Fixed issue with moving files across different file systems (ticket:251)
     7
     8  A complete list of closed tickets can be found here [[br]]
     9  http://trac.thep.lu.se/trac/svndigest/query?status=closed&milestone=0.6.2
     10
    511Version 0.6.1 (released 9 July 2007)
    612  - changed refs to svndigest site to http://trac.thep.lu.se/trac/svndigest
    7   - fixed lineover bug in blame output (#235)
     13  - fixed lineover bug in blame output (ticket:235)
    814
    9 A complete list of closed tickets can be found here
    10 
     15  A complete list of closed tickets can be found here [[br]]
    1116  http://trac.thep.lu.se/trac/svndigest/query?status=closed&milestone=0.6.1
    1217
     
    1419  - svn blame output
    1520  - reports for individual authors
    16   - differentiating several linetypes
     21  - differentiating several line types
    1722  - support for TracLinks
    1823  - config file, see options `--config-file` and `--generate-config`
    19   - support for automatic update of copyright statement     
     24  - support for automatic update of copyright statement
    2025  - Removed option flag '-rev'
    2126  - More file extensions supported for parsing.
    22  
    23 A complete list of closed tickets can be found here
    2427
     28  A complete list of closed tickets can be found here [[br]]
    2529  http://trac.thep.lu.se/trac/svndigest/query?status=closed&milestone=0.6
    2630
    2731Version 0.5 (released 7 September 2006)
    28   - Added support for svndigest:ignore property.
    29   - Creation of static svndigest binary is now supported, use
    30     --enable-staticbin.
    31   - Dates and time now refers to UTC.
    32   - Statistics now differentiates between code, comments, and empty
    33     lines. Improvements to this parsing is still needed.
     32  - Added support for svndigest:ignore property.
     33  - Creation of static svndigest binary is now supported, use
     34    --enable-staticbin.
     35  - Dates and time now refers to UTC.
     36  - Statistics now differentiates between code, comments, and empty
     37    lines. Improvements to this parsing is still needed.
    3438
    3539Version 0.4 (released 12 August 2006)
    36   - Project name changed from svnstat to svndigest.
     40  - Project name changed from svnstat to svndigest.
    3741
    3842Version 0.3 (released 10 August 2006)
    39   - Improved the generated output.
    40   - svnstat handles unexpected situations more gracefully (like
    41     running svnstat on a tree that is not under subversion control,
    42     trees with items that are not up to date).
    43   - Proper version information is displayed using --version option.
     43  - Improved the generated output.
     44  - svnstat handles unexpected situations more gracefully (like
     45    running svnstat on a tree that is not under subversion control,
     46    trees with items that are not up to date).
     47  - Proper version information is displayed using --version option.
    4448
    4549Version 0.2 (released 12 March 2006)
    46   - Improved web page presentation.
    47   - Added option to plot changes against time or revision.
     50  - Improved web page presentation.
     51  - Added option to plot changes against time or revision.
    4852
    4953Version 0.1 (released 4 March 2006)
    50   - First release.
     54  - First release.
    5155
    5256-------------------------------------------------------------------
  • tags/0.6.2/configure.ac

    r1608 r1608  
    2929
    3030AC_PREREQ(2.57)
    31 AC_INIT([svndigest],[0.6.1],[jari@thep.lu.se])
     31AC_INIT([svndigest],[0.6.2],[jari@thep.lu.se])
    3232AC_CONFIG_SRCDIR([lib/File.h])
    3333AC_CONFIG_AUX_DIR([autotools])
  • tags/0.6.2/lib/File.cc

    r1608 r1608  
    3434
    3535#include <cassert>
     36#include <cstdio>
    3637#include <ctime>
    3738#include <fstream>
     
    254255    tmp.close();
    255256    close(fd);
    256     // finally move printed temporary file to original file
    257     rename(tmpname, path().c_str());
     257    // finally copy temporary file to replace original file, and
     258    // remove the temporary file
     259    try {
     260      copy_file(tmpname, path());
     261    }
     262    catch (std::runtime_error e) {
     263      // catch exception, cleanup, and rethrow
     264      std::cerr << "File::print_copyright: Exception caught, "
     265                << "removing temporary file " << tmpname << std::endl;
     266      if (unlink(tmpname))
     267        throw runtime_error(std::string("File::print_copyright: ") +
     268                            "failed to unlink temporary file" + tmpname);
     269      throw;
     270    }
     271    if (unlink(tmpname))
     272      throw runtime_error(std::string("File::print_copyright: ") +
     273                          "failed to unlink temporary file" + tmpname);
    258274  }
    259275
  • tags/0.6.2/lib/File.h

    r1608 r1608  
    6666    const Stats& parse(const bool verbose=false);
    6767
     68    /**
     69       @throw std::runtime_error when a file error is encountered
     70       updating the copyrights.
     71    */
    6872    void print_copyright(std::map<std::string, Alias>&) const;
    6973
  • tags/0.6.2/lib/first_page.cc

    r1608 r1608  
    103103       << "<tr><td>Smallest Revision:</td><td>" << log.revision()[0]
    104104       << "</td></tr>\n"
    105        << "<tr><td>Biggest Revision:</td><td>" << log.revision().back()
     105       << "<tr><td>Largest Revision:</td><td>" << log.revision().back()
    106106       << "</td></tr>\n"
    107107       << "<tr><td>Revision Count:</td><td>" << log.revision().size()
  • tags/0.6.2/lib/html_utility.cc

    r1608 r1608  
    122122      os << "<li>";
    123123    os << anchor(user+"/empty/"+path, "Other", level,
    124                  "View statistics of empty lines");
     124                 "View statistics of other lines");
    125125    os << "</li>"
    126126       << "</ul></div>"
  • tags/0.6.2/lib/utility.cc

    r1608 r1608  
    22
    33/*
    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
    65
    76  This file is part of svndigest, http://trac.thep.lu.se/trac/svndigest
     
    6160
    6261
     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
    6381  std::string file_name(const std::string& full_path)
    6482  {
  • tags/0.6.2/lib/utility.h

    r1608 r1608  
    55
    66/*
    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
    98
    109  This file is part of svndigest, http://trac.thep.lu.se/trac/svndigest
     
    5352  ///
    5453  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);
    5562
    5663  ///
Note: See TracChangeset for help on using the changeset viewer.