Changeset View
Changeset View
Standalone View
Standalone View
plugins/appwizard/appwizardplugin.cpp
Show First 20 Lines • Show All 154 Lines • ▼ Show 20 Line(s) | 143 | { | |||
---|---|---|---|---|---|
155 | qCDebug(PLUGIN_APPWIZARD) << "Initializing DVCS repository:" << dest; | 155 | qCDebug(PLUGIN_APPWIZARD) << "Initializing DVCS repository:" << dest; | ||
156 | 156 | | |||
157 | job = dvcs->add({dest}, KDevelop::IBasicVersionControl::Recursive); | 157 | job = dvcs->add({dest}, KDevelop::IBasicVersionControl::Recursive); | ||
158 | if (!job || !job->exec() || job->status() != VcsJob::JobSucceeded) | 158 | if (!job || !job->exec() || job->status() != VcsJob::JobSucceeded) | ||
159 | { | 159 | { | ||
160 | vcsError(i18n("Could not add files to the DVCS repository"), scratchArea, dest); | 160 | vcsError(i18n("Could not add files to the DVCS repository"), scratchArea, dest); | ||
161 | return false; | 161 | return false; | ||
162 | } | 162 | } | ||
163 | job = dvcs->commit(QStringLiteral("initial project import from KDevelop"), {dest}, | 163 | job = dvcs->commit(info.importCommitMessage, {dest}, | ||
164 | KDevelop::IBasicVersionControl::Recursive); | 164 | KDevelop::IBasicVersionControl::Recursive); | ||
165 | if (!job || !job->exec() || job->status() != VcsJob::JobSucceeded) | 165 | if (!job || !job->exec() || job->status() != VcsJob::JobSucceeded) | ||
166 | { | 166 | { | ||
167 | vcsError(i18n("Could not import project into %1.", dvcs->name()), scratchArea, dest, job ? job->errorString() : QString()); | 167 | vcsError(i18n("Could not import project into %1.", dvcs->name()), scratchArea, dest, job ? job->errorString() : QString()); | ||
168 | return false; | 168 | return false; | ||
169 | } | 169 | } | ||
170 | 170 | | |||
171 | return true; // We're good | 171 | return true; // We're good | ||
▲ Show 20 Lines • Show All 344 Lines • Show Last 20 Lines |