Changeset 994


Ignore:
Timestamp:
Dec 25, 2009, 12:46:54 AM (12 years ago)
Author:
Peter Johansson
Message:

Fixed bug so default codons are not added twice to configuration
file. The bug caused some comment lines to be interpreted as code
lines. Cache file version is upgraded to prevent that old cache file
(which reflects this bug) are used to create new reports. A notice is
sent to stdout telling the user the cache file is out-dated.

fixes #431

Location:
branches/0.7-stable/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/0.7-stable/lib/Configuration.cc

    r847 r994  
    129129  {
    130130    assert(is.good());
    131     set_default();
    132131
    133132    bool parsing_found=false;
  • branches/0.7-stable/lib/Stats.cc

    r879 r994  
    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;
  • branches/0.7-stable/lib/Stats.h

    r847 r994  
    223223    // that all old cache files are obsolete.
    224224    inline std::string cache_check_str(void) const
     225    {return "CACHE FILE VERSION 7";}
     226
     227    inline std::string prev_cache_check_str(void) const
    225228    {return "CACHE FILE VERSION 6";}
    226229
Note: See TracChangeset for help on using the changeset viewer.