Changeset 14 for trunk/lib/File.cc


Ignore:
Timestamp:
Dec 30, 2005, 3:57:47 PM (17 years ago)
Author:
Peter Johansson
Message:

adding Stats class and removed pointer from node to its mother(dir), which enforced some changes here and there

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/File.cc

    r10 r14  
    33#include "File.h"
    44#include "Node.h"
     5#include "Stats.h"
    56
    67#include <fstream>
     
    2223  }
    2324
    24   bool File::parse(void)
     25  const Stats& File::parse(void)
    2526  {
     27    // calling svn info
     28    info();
     29    stats_.reset();
    2630    if (binary_){
    27       add(author_,revision_);
    28       return true;
     31      stats_.add(author_,revision_);
     32      return stats_;
    2933    }
    3034
    3135    // Calling svn blame
    3236    if (!blame())
    33       return false;
     37      return stats_;
    3438
    3539    // Check if file is binary
     
    5660      ss >> revision;
    5761      ss >> user;
    58       add(user, revision);
     62      stats_.add(user, revision);
    5963    }
    6064    is.close();
    61     return true;
     65    return stats_;
    6266  }
    6367
Note: See TracChangeset for help on using the changeset viewer.