Changeset 60 for trunk/lib/CommitStat.cc
- Timestamp:
- Jan 16, 2006, 11:03:04 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/CommitStat.cc
r48 r60 3 3 #include "CommitStat.h" 4 4 5 #include <algorithm> 5 6 #include <fstream> 6 7 #include <iostream> … … 14 15 { 15 16 std::string system_call = "svn log -q " + path + " > svnstat.log.tmp"; 17 std::cout << system_call << std::endl; 16 18 int system_return = system(system_call.c_str()); 17 19 if (system_return) … … 34 36 35 37 if (ss.get() == 'r'){ 36 u_int revision;38 size_t revision; 37 39 ss >> revision; 38 40 std::string tmp; … … 45 47 std::string time; 46 48 ss >> time; 49 50 date_.resize(std::max(revision+1, date_.size())); 51 date_[revision] = date; 47 52 } 48 53 } 49 54 is.close(); 55 56 for(std::vector<std::string>::reverse_iterator i=date_.rbegin(); 57 i!=date_.rend(); ++i) 58 if (i->empty()){ 59 assert(i!=date_.rbegin()); 60 *i = *(i-1); 61 } 50 62 51 63 return system_return;
Note: See TracChangeset
for help on using the changeset viewer.