Changeset 1124 for trunk/lib/Stats.cc


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

detecting old cache files and re-writing them in new format (version 8). closes #443 and #289

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Stats.cc

    r1122 r1124  
    289289
    290290
    291   svn_revnum_t Stats::load_cache(std::istream& is)
     291  svn_revnum_t Stats::load_cache(std::istream& is, bool& latest_ver)
    292292  {
    293293    std::string str;
    294294    getline(is, str);
    295     if (str == "CACHE FILE VERSION 8")
     295    if (str == "CACHE FILE VERSION 8") {
     296      latest_ver = true;
    296297      return load_cache8(is);
     298    }
     299    latest_ver = false;
    297300    if (str == "CACHE FILE VERSION 7")
    298301      return load_cache7(is);
Note: See TracChangeset for help on using the changeset viewer.