Changeset 1218 for trunk/lib/SVNblame.cc
- Timestamp:
- Oct 10, 2010, 4:27:39 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/SVNblame.cc
r978 r1218 31 31 32 32 SVNblame::SVNblame(const std::string& path) 33 : binary_(false),instance_(SVN::instance())33 : instance_(SVN::instance()) 34 34 { 35 if (svn_error_t* err= 36 instance_->client_blame(path.c_str(), blame_receiver, 37 static_cast<void*>(&blame_receiver_baton_))) { 38 // SVN_ERR_CLIENT_IS_BINARY_FILE is the only error allowed to 39 // escape the client_blame call 40 svn_error_clear(err); 41 binary_=true; 42 } 35 instance_->client_blame(path.c_str(), blame_receiver, 36 static_cast<void*>(&blame_receiver_baton_)); 43 37 blame_info_iterator_ = blame_receiver_baton_.blame_info.begin(); 44 38 } … … 46 40 47 41 SVNblame::SVNblame(const std::string& path, svn_revnum_t rev) 48 : binary_(false),instance_(SVN::instance())42 : instance_(SVN::instance()) 49 43 { 50 if (svn_error_t* err= 51 instance_->client_blame(path.c_str(), blame_receiver, 52 static_cast<void*>(&blame_receiver_baton_), 53 rev)) { 54 // SVN_ERR_CLIENT_IS_BINARY_FILE is the only error allowed to 55 // escape the client_blame call 56 svn_error_clear(err); 57 binary_=true; 58 } 44 instance_->client_blame(path.c_str(), blame_receiver, 45 static_cast<void*>(&blame_receiver_baton_), 46 rev); 59 47 blame_info_iterator_ = blame_receiver_baton_.blame_info.begin(); 60 48 } … … 75 63 { 76 64 return (*blame_info_iterator_)->author; 77 }78 79 80 bool SVNblame::binary(void)81 {82 return binary_;83 65 } 84 66
Note: See TracChangeset
for help on using the changeset viewer.