Changes from tags/0.7.1 at r1608 to tags/0.7.2 at r1608
- Location:
- tags/0.7.2
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/0.7.2/Makefile.am
r1608 r1608 48 48 MAINTAINER_CHECK_LOCAL = all check 49 49 # extra check in release rule 50 #RELEASE_LOCAL = 50 RELEASE_LOCAL = check-svn_revision 51 52 .PHONY: check-svn_revision 53 54 check-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 5 5 svndigest 0.7.x series from 6 6 http://dev.thep.lu.se/svndigest/svn/branches/0.7-stable 7 8 Version 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 7 15 8 16 Version 0.7.1 (released 3 December 2009) … … 126 134 Copyright (C) 2005, 2006 Jari Häkkinen 127 135 Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson 128 Copyright (C) 2009 Peter Johansson136 Copyright (C) 2009, 2010 Peter Johansson 129 137 130 138 This file is part of svndigest, http://dev.thep.lu.se/svndigest -
tags/0.7.2/lib/AddStats.cc
r1608 r1608 4 4 Copyright (C) 2005 Peter Johansson 5 5 Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson 6 Copyright (C) 2009 Peter Johansson6 Copyright (C) 2009, 2010 Peter Johansson 7 7 8 8 This file is part of svndigest, http://dev.thep.lu.se/svndigest … … 77 77 78 78 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 79 86 }} // end of namespace svndigest and namespace theplu -
tags/0.7.2/lib/AddStats.h
r1608 r1608 7 7 Copyright (C) 2005 Peter Johansson 8 8 Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson 9 Copyright (C) 2010 Peter Johansson 9 10 10 11 This file is part of svndigest, http://dev.thep.lu.se/svndigest … … 44 45 private: 45 46 void do_parse(const std::string&, svn_revnum_t); 47 unsigned int max_element(const std::vector<unsigned int>&) const; 46 48 47 49 }; -
tags/0.7.2/lib/BlameStats.cc
r1608 r1608 4 4 Copyright (C) 2005 Peter Johansson 5 5 Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson 6 Copyright (C) 2009 Peter Johansson6 Copyright (C) 2009, 2010 Peter Johansson 7 7 8 8 This file is part of svndigest, http://dev.thep.lu.se/svndigest … … 118 118 119 119 120 unsigned int BlameStats::max_element(const std::vector<unsigned int>& v) const 121 { 122 assert(v.size()); 123 return v.back(); 124 } 125 120 126 }} // end of namespace svndigest and namespace theplu -
tags/0.7.2/lib/BlameStats.h
r1608 r1608 7 7 Copyright (C) 2005 Peter Johansson 8 8 Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson 9 Copyright (C) 2010 Peter Johansson 9 10 10 11 This file is part of svndigest, http://dev.thep.lu.se/svndigest … … 45 46 void do_parse(const std::string&, svn_revnum_t); 46 47 void fill_in(Author2Vector&, svn_revnum_t rev); 48 unsigned int max_element(const std::vector<unsigned int>&) const; 47 49 48 50 }; -
tags/0.7.2/lib/Configuration.cc
r1608 r1608 129 129 { 130 130 assert(is.good()); 131 set_default();132 131 133 132 bool parsing_found=false; -
tags/0.7.2/lib/Stats.cc
r1608 r1608 4 4 Copyright (C) 2005 Peter Johansson 5 5 Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson 6 Copyright (C) 2009 Peter Johansson6 Copyright (C) 2009, 2010 Peter Johansson 7 7 8 8 This file is part of svndigest, http://dev.thep.lu.se/svndigest … … 278 278 std::string str; 279 279 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"; 281 284 return 0; 285 } 282 286 svn_revnum_t rev; 283 287 is >> rev; … … 328 332 } 329 333 } 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()); 330 340 } 331 341 … … 376 386 for (std::set<std::string>::const_iterator i=authors_.begin(); 377 387 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)); 381 392 } 382 393 } -
tags/0.7.2/lib/Stats.h
r1608 r1608 7 7 Copyright (C) 2005 Peter Johansson 8 8 Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson 9 Copyright (C) 2009, 2010 Peter Johansson 9 10 10 11 This file is part of svndigest, http://dev.thep.lu.se/svndigest … … 223 224 // that all old cache files are obsolete. 224 225 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 225 229 {return "CACHE FILE VERSION 6";} 226 230 … … 230 234 unsigned int get_back(const Author2Vector&, std::string user) const; 231 235 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 232 246 void print(std::ostream& os, const Author2Vector& m) const; 233 247 -
tags/0.7.2/lib/copyright_year.cc
r1608 r1608 3 3 /* 4 4 Copyright (C) 2008 Jari Häkkinen, Peter Johansson 5 Copyright (C) 2009 Peter Johansson5 Copyright (C) 2009, 2010 Peter Johansson 6 6 7 7 This file is part of svndigest, http://dev.thep.lu.se/svndigest … … 29 29 std::string svn_year(void) 30 30 { 31 return "20 09";31 return "2010"; 32 32 } 33 33 -
tags/0.7.2/m4/version.m4
r1608 r1608 2 2 # 3 3 # Copyright (C) 2008 Jari Häkkinen, Peter Johansson 4 # Copyright (C) 2009 Peter Johansson4 # Copyright (C) 2009, 2010 Peter Johansson 5 5 # 6 6 # This file is part of svndigest, http://trac.thep.lu.se/svndigest … … 28 28 m4_define([MINOR_VERSION], [7]) 29 29 # PATCH - Modify for every released patch 30 m4_define([PATCH_VERSION], [ 1])30 m4_define([PATCH_VERSION], [2]) 31 31 32 32 # SVNDIGEST_DEV_BUILD - When rolling a tarball we set this to `false'. In
Note: See TracChangeset
for help on using the changeset viewer.