| 79 | } |
| 80 | |
| 81 | VcsJob* BazaarPlugin::commit(const QString& message, const QList<QUrl>& localLocations, IBasicVersionControl::RecursionMode recursion) |
| 82 | { |
| 83 | if (localLocations.empty()) { |
| 84 | return makeVcsErrorJob(i18n("No files selected to commit"), this); |
| 85 | } |
| 86 | |
| 87 | QDir dir = BazaarUtils::workingCopy(localLocations[0]); |
| 88 | auto* job = new DVcsJob(dir, this); |
| 89 | job->setType(VcsJob::Commit); |
| 90 | |
| 91 | *job << "bzr" << "commit" << BazaarUtils::handleRecursion(localLocations, recursion) << "-m" << message; |
| 92 | return job; |
| 93 | } |
| 94 | |
| 95 | VcsJob* BazaarPlugin::copy(const QUrl& localLocationSrc, const QUrl& localLocationDstn) |
| 96 | { |