Changeset 462


Ignore:
Timestamp:
Aug 21, 2007, 12:34:37 PM (14 years ago)
Author:
Jari Häkkinen
Message:

Merged patch release 0.6.2 to the trunk. Delta 0.6.2 - 0.6.1

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r439 r462  
    3131  - http://lev.thep.lu.se/trac/svndigest/query?milestone=0.7&order=id
    3232
     33version 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
    3337version 0.6.1:
    3438  - http://trac.thep.lu.se/trac/svndigest/log/branches/0.6-stable?rev=437&stop_rev=417
  • trunk/NEWS

    r439 r462  
    44
    55Version 0.7 (released DATE)
    6   -
    76
    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
    99
    10   http://lev.thep.lu.se/trac/svndigest/query?status=closed&milestone=0.7
    11  
     10Version 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
    1216Version 0.6.1 (released 9 July 2007)
    1317  - 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)
    1519
    16 A complete list of closed tickets can be found here
    17 
     20  A complete list of closed tickets can be found here [[br]]
    1821  http://trac.thep.lu.se/trac/svndigest/query?status=closed&milestone=0.6.1
    1922
     
    2124  - svn blame output
    2225  - reports for individual authors
    23   - differentiating several linetypes
     26  - differentiating several line types
    2427  - support for TracLinks
    2528  - 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
    2730  - Removed option flag '-rev'
    2831  - More file extensions supported for parsing.
    29  
    30 A complete list of closed tickets can be found here
    3132
     33  A complete list of closed tickets can be found here [[br]]
    3234  http://trac.thep.lu.se/trac/svndigest/query?status=closed&milestone=0.6
    3335
    3436Version 0.5 (released 7 September 2006)
    35   - Added support for svndigest:ignore property.
    36   - Creation of static svndigest binary is now supported, use
    37     --enable-staticbin.
    38   - Dates and time now refers to UTC.
    39   - Statistics now differentiates between code, comments, and empty
    40     lines. Improvements to this parsing is still needed.
     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.
    4143
    4244Version 0.4 (released 12 August 2006)
    43   - Project name changed from svnstat to svndigest.
     45  - Project name changed from svnstat to svndigest.
    4446
    4547Version 0.3 (released 10 August 2006)
    46   - Improved the generated output.
    47   - svnstat handles unexpected situations more gracefully (like
    48     running svnstat on a tree that is not under subversion control,
    49     trees with items that are not up to date).
    50   - Proper version information is displayed using --version option.
     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.
    5153
    5254Version 0.2 (released 12 March 2006)
    53   - Improved web page presentation.
    54   - Added option to plot changes against time or revision.
     55  - Improved web page presentation.
     56  - Added option to plot changes against time or revision.
    5557
    5658Version 0.1 (released 4 March 2006)
    57   - First release.
     59  - First release.
    5860
    5961-------------------------------------------------------------------
  • trunk/lib/File.cc

    r452 r462  
    3535
    3636#include <cassert>
     37#include <cstdio>
    3738#include <ctime>
    3839#include <fstream>
     
    366367    stat(path().c_str(),&nodestat);
    367368   
    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
    370387    chmod(path().c_str(), nodestat.st_mode);
    371388  }
  • trunk/lib/File.h

    r452 r462  
    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>&, bool verbose) const;
    6973
  • trunk/lib/first_page.cc

    r452 r462  
    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()
  • trunk/lib/html_utility.cc

    r439 r462  
    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>"
  • trunk/lib/utility.cc

    r439 r462  
    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  {
  • trunk/lib/utility.h

    r439 r462  
    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.