Changeset 501 for trunk/lib/SVNblame.cc


Ignore:
Timestamp:
Oct 19, 2007, 9:14:45 PM (14 years ago)
Author:
Peter Johansson
Message:

added function calling svn blame for specific revision. refs #24.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/SVNblame.cc

    r492 r501  
    3838        instance_->client_blame(path.c_str(), blame_receiver,
    3939                                static_cast<void*>(&blame_receiver_baton_))) {
     40      // SVN_ERR_CLIENT_IS_BINARY_FILE is the only error allowed to
     41      // escape the client_blame call
     42      svn_error_clear(err);
     43      binary_=true;
     44    }
     45    blame_info_iterator_ = blame_receiver_baton_.blame_info.begin();
     46  }
     47
     48
     49  SVNblame::SVNblame(const std::string& path, svn_revnum_t rev)
     50    : binary_(false), instance_(SVN::instance())
     51  {
     52    if (svn_error_t* err=
     53        instance_->client_blame(path.c_str(), blame_receiver,
     54                                static_cast<void*>(&blame_receiver_baton_),
     55                                rev)) {
    4056      // SVN_ERR_CLIENT_IS_BINARY_FILE is the only error allowed to
    4157      // escape the client_blame call
Note: See TracChangeset for help on using the changeset viewer.