Changeset 1122 for trunk/lib/Stats.h


Ignore:
Timestamp:
Jul 7, 2010, 6:00:11 AM (11 years ago)
Author:
Peter Johansson
Message:

added line in config file describing config used to create cache (refs
#433). If config is different from the current one, the cache is
ignored and stats are retrieved from repo. Restructured code a bit to
allow loading old cache files; the first line (in cache) is used to
decide which function to use for the loading. Cache files VERSION 7
and newer are supported and older are ignored (refs #289).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Stats.h

    r1090 r1122  
    197197                                         std::string user) const;
    198198  private:
     199    /// one liner used in cache file to validate that cache file was
     200    /// created current configuration
     201    std::string config_code_;
     202
    199203    /**
    200204       \a vec is resized to revision().
     
    216220    virtual void do_parse(const std::string&, svn_revnum_t first_rev)=0;
    217221   
     222    /// load cache file version 7
     223    svn_revnum_t load_cache7(std::istream&);
     224    /// load cache file version 8
     225    svn_revnum_t load_cache8(std::istream&);
     226
    218227    /**
    219228       called from plot(2)
     
    232241    inline std::string cache_check_str(void) const
    233242    {return "CACHE FILE VERSION 7";}
    234 
    235     inline std::string prev_cache_check_str(void) const
    236     {return "CACHE FILE VERSION 6";}
    237243
    238244    void calc_all(void);
Note: See TracChangeset for help on using the changeset viewer.