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

Method run

plugins/subversion/svnaddjob.cpp:24–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24void SvnInternalAddJob::run(ThreadWeaver::JobPointer /*self*/, ThreadWeaver::Thread* /*thread*/)
25{
26 initBeforeRun();
27
28 svn::Client cli(m_ctxt);
29 const QList<QUrl> l = locations();
30 for (const QUrl& url : l) {
31 try
32 {
33 QByteArray ba = url.toString( QUrl::PreferLocalFile | QUrl::StripTrailingSlash ).toUtf8();
34 cli.add( svn::Path( ba.data() ), recursive() );
35 }catch( const svn::ClientException& ce )
36 {
37 qCDebug(PLUGIN_SVN) << "Exception while adding file: "
38 << url
39 << QString::fromUtf8( ce.message() );
40 setErrorMessage( QString::fromUtf8( ce.message() ) );
41 m_success = false;
42 }
43 }
44}
45
46void SvnInternalAddJob::setRecursive( bool recursive )
47{

Callers

nothing calls this directly

Calls 5

PathClass · 0.50
toStringMethod · 0.45
addMethod · 0.45
dataMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected