Changeset 256 for trunk/lib/SVNlog.cc
- Timestamp:
- Apr 30, 2007, 1:17:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/SVNlog.cc
r234 r256 23 23 24 24 #include "SVNlog.h" 25 26 #include "Commitment.h" 25 27 #include "SVN.h" 26 28 … … 48 50 } 49 51 52 53 Commitment SVNlog::latest_commit(std::string name) const 54 { 55 std::vector<std::string>::const_reverse_iterator iter = 56 find(author().rbegin(), author().rend(), name); 57 size_t dist(std::distance(iter, author().rend())); 58 if (!dist) { 59 Commitment c; 60 return c; 61 } 62 return Commitment(author()[dist-1], Date(date()[dist-1]), 63 message()[dist-1], revision()[dist-1]); 64 65 } 50 66 51 67 }} // end of namespace svndigest and namespace theplu
Note: See TracChangeset
for help on using the changeset viewer.