MCPcopy Create free account
hub / github.com/KDE/kdevelop / commit

Method commit

plugins/subversion/3rdparty/kdevsvncpp/client_modify.cpp:213–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

ClientExceptionClass · 0.85
setLogMessageMethod · 0.45
arrayMethod · 0.45

Tested by

no test coverage detected