Changeset View
Changeset View
Standalone View
Standalone View
plugins/bazaar/bazaarplugin.cpp
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | |||||
60 | { | 60 | { | ||
61 | } | 61 | } | ||
62 | 62 | | |||
63 | QString BazaarPlugin::name() const | 63 | QString BazaarPlugin::name() const | ||
64 | { | 64 | { | ||
65 | return QStringLiteral("Bazaar"); | 65 | return QStringLiteral("Bazaar"); | ||
66 | } | 66 | } | ||
67 | 67 | | |||
68 | bool BazaarPlugin::isValidRemoteRepositoryUrl(const QUrl& remoteLocation) | ||||
69 | { | ||||
70 | const QString scheme = remoteLocation.scheme(); | ||||
71 | if (scheme == QLatin1String("bzr") || | ||||
72 | scheme == QLatin1String("bzr+ssh")) { | ||||
73 | return true; | ||||
74 | } | ||||
75 | return false; | ||||
76 | } | ||||
77 | | ||||
68 | VcsJob* BazaarPlugin::add(const QList<QUrl>& localLocations, IBasicVersionControl::RecursionMode recursion) | 78 | VcsJob* BazaarPlugin::add(const QList<QUrl>& localLocations, IBasicVersionControl::RecursionMode recursion) | ||
69 | { | 79 | { | ||
70 | DVcsJob* job = new DVcsJob(BazaarUtils::workingCopy(localLocations[0]), this); | 80 | DVcsJob* job = new DVcsJob(BazaarUtils::workingCopy(localLocations[0]), this); | ||
71 | job->setType(VcsJob::Add); | 81 | job->setType(VcsJob::Add); | ||
72 | *job << "bzr" << "add"; | 82 | *job << "bzr" << "add"; | ||
73 | if(recursion == NonRecursive) | 83 | if(recursion == NonRecursive) | ||
74 | *job << "--no-recurse"; | 84 | *job << "--no-recurse"; | ||
75 | *job << localLocations; | 85 | *job << localLocations; | ||
▲ Show 20 Lines • Show All 261 Lines • Show Last 20 Lines |