Changes from tags/0.7.1 at r1608 to tags/0.7.2 at r1608


Ignore:
Location:
tags/0.7.2
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • tags/0.7.2/Makefile.am

    r1608 r1608  
    4848MAINTAINER_CHECK_LOCAL = all check
    4949# extra check in release rule
    50 #RELEASE_LOCAL =
     50RELEASE_LOCAL = check-svn_revision
     51
     52.PHONY: check-svn_revision
     53
     54check-svn_revision:
     55  @$(SVNVERSION) | $(EGREP) '^[0-9]+$$' || \
     56  { echo incorrect svn revision - expected single unmodified revision 1>&2; \
     57    exit 1; }
  • tags/0.7.2/NEWS

    r1608 r1608  
    55svndigest 0.7.x series from
    66    http://dev.thep.lu.se/svndigest/svn/branches/0.7-stable
     7
     8Version 0.7.2 (released 2 January 2010)
     9  - Author included in plot unless count is 0 for all revisions (bug #434)
     10  - Default codons in config file is now corrected. Old cache files
     11    are obsolete and are ignored by svndigest 0.7.2 (bug #431)
     12
     13  A complete list of closed tickets can be found here [[br]]
     14  http://dev.thep.lu.se/svndigest/query?status=closed&milestone=0.7.2
    715
    816Version 0.7.1 (released 3 December 2009)
     
    126134Copyright (C) 2005, 2006 Jari Häkkinen
    127135Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
    128 Copyright (C) 2009 Peter Johansson
     136Copyright (C) 2009, 2010 Peter Johansson
    129137
    130138This file is part of svndigest, http://dev.thep.lu.se/svndigest
  • tags/0.7.2/lib/AddStats.cc

    r1608 r1608  
    44  Copyright (C) 2005 Peter Johansson
    55  Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson
    6   Copyright (C) 2009 Peter Johansson
     6  Copyright (C) 2009, 2010 Peter Johansson
    77
    88  This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    7777
    7878
     79  unsigned int AddStats::max_element(const std::vector<unsigned int>& v) const
     80  {
     81    assert(v.size());
     82    return v.back();
     83  }
     84
     85
    7986}} // end of namespace svndigest and namespace theplu
  • tags/0.7.2/lib/AddStats.h

    r1608 r1608  
    77  Copyright (C) 2005 Peter Johansson
    88  Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson
     9  Copyright (C) 2010 Peter Johansson
    910
    1011  This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    4445  private:
    4546    void do_parse(const std::string&, svn_revnum_t);
     47    unsigned int max_element(const std::vector<unsigned int>&) const;
    4648
    4749  };
  • tags/0.7.2/lib/BlameStats.cc

    r1608 r1608  
    44  Copyright (C) 2005 Peter Johansson
    55  Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson
    6   Copyright (C) 2009 Peter Johansson
     6  Copyright (C) 2009, 2010 Peter Johansson
    77
    88  This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    118118
    119119
     120  unsigned int BlameStats::max_element(const std::vector<unsigned int>& v) const
     121  {
     122    assert(v.size());
     123    return v.back();
     124  }
     125
    120126}} // end of namespace svndigest and namespace theplu
  • tags/0.7.2/lib/BlameStats.h

    r1608 r1608  
    77  Copyright (C) 2005 Peter Johansson
    88  Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson
     9  Copyright (C) 2010 Peter Johansson
    910
    1011  This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    4546    void do_parse(const std::string&, svn_revnum_t);
    4647    void fill_in(Author2Vector&, svn_revnum_t rev);
     48    unsigned int max_element(const std::vector<unsigned int>&) const;
    4749
    4850  };
  • tags/0.7.2/lib/Configuration.cc

    r1608 r1608  
    129129  {
    130130    assert(is.good());
    131     set_default();
    132131
    133132    bool parsing_found=false;
  • tags/0.7.2/lib/Stats.cc

    r1608 r1608  
    44  Copyright (C) 2005 Peter Johansson
    55  Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson
    6   Copyright (C) 2009 Peter Johansson
     6  Copyright (C) 2009, 2010 Peter Johansson
    77
    88  This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    278278    std::string str;
    279279    getline(is, str);
    280     if (str!=cache_check_str())
     280    if (str!=cache_check_str()) {
     281      if (str == prev_cache_check_str())
     282        std::cout << "cache file is obsolete; "
     283                  << "retrieving statistics from repository.\n";
    281284      return 0;
     285    }
    282286    svn_revnum_t rev;
    283287    is >> rev;
     
    328332      }
    329333    }
     334  }
     335
     336
     337  unsigned int Stats::max_element(const std::vector<unsigned int>& vec) const
     338  {
     339    return *std::max_element(vec.begin(), vec.end());
    330340  }
    331341
     
    376386    for (std::set<std::string>::const_iterator i=authors_.begin();
    377387         i != authors_.end(); ++i) {
    378       if (lines(*i)) {
    379         assert(stat->find(*i)!=stat->end());
    380         author_cont.push_back(std::make_pair(*i,get_vector(*stat,*i)));
     388      assert(stat->find(*i)!=stat->end());
     389      const std::vector<unsigned int>& vec = get_vector(*stat,*i);
     390      if (max_element(vec)) {
     391        author_cont.push_back(std::make_pair(*i,vec));
    381392      }
    382393    }
  • tags/0.7.2/lib/Stats.h

    r1608 r1608  
    77  Copyright (C) 2005 Peter Johansson
    88  Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson
     9  Copyright (C) 2009, 2010 Peter Johansson
    910
    1011  This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    223224    // that all old cache files are obsolete.
    224225    inline std::string cache_check_str(void) const
     226    {return "CACHE FILE VERSION 7";}
     227
     228    inline std::string prev_cache_check_str(void) const
    225229    {return "CACHE FILE VERSION 6";}
    226230
     
    230234    unsigned int get_back(const Author2Vector&, std::string user) const;
    231235    void load(std::istream& is, Author2Vector& m);
     236    /**
     237       Finds the largets element by iterating through the entire
     238       vector. Inherited classes should implement their own version
     239       when it is possible to get the largest element in faster than
     240       in linear time.
     241
     242       \return the largest largest element in \a v.
     243    */
     244    virtual unsigned int max_element(const std::vector<unsigned int>& v) const;
     245
    232246    void print(std::ostream& os, const Author2Vector& m) const;
    233247
  • tags/0.7.2/lib/copyright_year.cc

    r1608 r1608  
    33/*
    44  Copyright (C) 2008 Jari Häkkinen, Peter Johansson
    5   Copyright (C) 2009 Peter Johansson
     5  Copyright (C) 2009, 2010 Peter Johansson
    66
    77  This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    2929  std::string svn_year(void)
    3030  {
    31     return "2009";
     31    return "2010";
    3232  }
    3333
  • tags/0.7.2/m4/version.m4

    r1608 r1608  
    22#
    33# Copyright (C) 2008 Jari Häkkinen, Peter Johansson
    4 # Copyright (C) 2009 Peter Johansson
     4# Copyright (C) 2009, 2010 Peter Johansson
    55#
    66# This file is part of svndigest, http://trac.thep.lu.se/svndigest
     
    2828m4_define([MINOR_VERSION], [7])
    2929# PATCH - Modify for every released patch
    30 m4_define([PATCH_VERSION], [1])
     30m4_define([PATCH_VERSION], [2])
    3131
    3232# SVNDIGEST_DEV_BUILD - When rolling a tarball we set this to `false'. In
Note: See TracChangeset for help on using the changeset viewer.