Changeset 72 for trunk/lib/Stats.cc


Ignore:
Timestamp:
Mar 2, 2006, 11:16:24 PM (16 years ago)
Author:
Peter Johansson
Message:

prefer stl algorithms...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Stats.cc

    r65 r72  
    6666
    6767
    68   bool Stats::parse(const std::string& path, const bool binary)
     68  bool Stats::parse(const std::string& path)
    6969  {
    70     if (binary){
    71       std::map<std::string,std::string> svn_info = info(path);
    72       std::stringstream ss(svn_info["Last Changed Rev"]);
    73       u_int revision;
    74       ss >> revision;
    75       add(svn_info["Last Changed Author"],revision);
    76       return true;
    77     }
    78 
    7970    // Calling svn blame
    8071    if (blame(path))
     
    8980      if (line==std::string("binary")){
    9081        is.close();
    91         return parse(path,true);
     82        return true;
    9283      }
    9384    }
Note: See TracChangeset for help on using the changeset viewer.