Changeset 14 for trunk/lib/File.cc
- Timestamp:
- Dec 30, 2005, 3:57:47 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/File.cc
r10 r14 3 3 #include "File.h" 4 4 #include "Node.h" 5 #include "Stats.h" 5 6 6 7 #include <fstream> … … 22 23 } 23 24 24 boolFile::parse(void)25 const Stats& File::parse(void) 25 26 { 27 // calling svn info 28 info(); 29 stats_.reset(); 26 30 if (binary_){ 27 add(author_,revision_);28 return true;31 stats_.add(author_,revision_); 32 return stats_; 29 33 } 30 34 31 35 // Calling svn blame 32 36 if (!blame()) 33 return false;37 return stats_; 34 38 35 39 // Check if file is binary … … 56 60 ss >> revision; 57 61 ss >> user; 58 add(user, revision);62 stats_.add(user, revision); 59 63 } 60 64 is.close(); 61 return true;65 return stats_; 62 66 } 63 67
Note: See TracChangeset
for help on using the changeset viewer.