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