bool CommitAction::Perform() { svn::Client client(GetContext()); std::string messageUtf8(LocalToUtf8(m_message)); svn::Pool pool; svn_revnum_t revision = client.commit(m_files, messageUtf8.c_str(), m_recursive, m_keepLocks); wxString str; str = wxString::Format(wxT("%s %") wxT(SVN_REVNUM_T_FMT) wxT("."), _("Committed revision"), revision); Trace(str); const std::string &postCommitErr = client.commitInfo().postCommitErr; if (postCommitErr.length() > 0) throw svn::ClientException(postCommitErr.c_str()); return true; }
bool LockAction::Perform() { svn::Client client(GetContext()); std::string messageUtf8(LocalToUtf8(m_message)); client.lock(GetTargets(), m_stealLock, messageUtf8.c_str()); return true; }