| 211 | } |
| 212 | |
| 213 | svn_revnum_t |
| 214 | Client::commit(const Targets & targets, |
| 215 | const char * message, |
| 216 | bool recurse, |
| 217 | bool keep_locks) |
| 218 | { |
| 219 | Pool pool; |
| 220 | |
| 221 | m_context->setLogMessage(message); |
| 222 | |
| 223 | svn_client_commit_info_t *commit_info = nullptr; |
| 224 | |
| 225 | svn_error_t * error = |
| 226 | svn_client_commit2(&commit_info, |
| 227 | targets.array(pool), |
| 228 | recurse, |
| 229 | keep_locks, |
| 230 | *m_context, |
| 231 | pool); |
| 232 | if (error != nullptr) |
| 233 | throw ClientException(error); |
| 234 | |
| 235 | if (commit_info && SVN_IS_VALID_REVNUM(commit_info->revision)) |
| 236 | return commit_info->revision; |
| 237 | |
| 238 | return -1; |
| 239 | } |
| 240 | |
| 241 | |
| 242 | void |
nothing calls this directly
no test coverage detected