Changeset View
Changeset View
Standalone View
Standalone View
plugins/bazaar/bazaarplugin.cpp
Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Line(s) | 106 | { | |||
---|---|---|---|---|---|
110 | job->setType(VcsJob::Import); | 110 | job->setType(VcsJob::Import); | ||
111 | *job << "bzr" << "branch" << sourceRepository.localUrl().url() << destinationDirectory; | 111 | *job << "bzr" << "branch" << sourceRepository.localUrl().url() << destinationDirectory; | ||
112 | return job; | 112 | return job; | ||
113 | } | 113 | } | ||
114 | 114 | | |||
115 | VcsJob* BazaarPlugin::diff(const QUrl& fileOrDirectory, const VcsRevision& srcRevision, const VcsRevision& dstRevision, VcsDiff::Type, IBasicVersionControl::RecursionMode recursion) | 115 | VcsJob* BazaarPlugin::diff(const QUrl& fileOrDirectory, const VcsRevision& srcRevision, const VcsRevision& dstRevision, VcsDiff::Type, IBasicVersionControl::RecursionMode recursion) | ||
116 | { | 116 | { | ||
117 | Q_UNUSED(recursion); | 117 | Q_UNUSED(recursion); | ||
118 | // TODO support m_contextLines (less urgent because Phabricator doesn't support Bazaar) | ||||
118 | VcsJob* job = new DiffJob(BazaarUtils::workingCopy(fileOrDirectory), BazaarUtils::getRevisionSpecRange(srcRevision, dstRevision), fileOrDirectory, this); | 119 | VcsJob* job = new DiffJob(BazaarUtils::workingCopy(fileOrDirectory), BazaarUtils::getRevisionSpecRange(srcRevision, dstRevision), fileOrDirectory, this); | ||
119 | return job; | 120 | return job; | ||
120 | } | 121 | } | ||
121 | 122 | | |||
122 | VcsJob* BazaarPlugin::init(const QUrl& localRepositoryRoot) | 123 | VcsJob* BazaarPlugin::init(const QUrl& localRepositoryRoot) | ||
123 | { | 124 | { | ||
124 | DVcsJob* job = new DVcsJob(BazaarUtils::toQDir(localRepositoryRoot), this); | 125 | DVcsJob* job = new DVcsJob(BazaarUtils::toQDir(localRepositoryRoot), this); | ||
125 | job->setType(VcsJob::Import); | 126 | job->setType(VcsJob::Import); | ||
▲ Show 20 Lines • Show All 211 Lines • Show Last 20 Lines |