MCPcopy Create free account
hub / github.com/KDE/kdevelop / pull

Method pull

plugins/bazaar/bazaarplugin.cpp:194–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194VcsJob* BazaarPlugin::pull(const VcsLocation& localOrRepoLocationSrc, const QUrl& localRepositoryLocation)
195{
196 // API describes hg pull which is git fetch equivalent
197 // bzr has pull, but it succeeds only if fast-forward is possible
198 // in other cases bzr merge should be used instead (bzr pull would fail)
199 // Information about repository must be provided at least once.
200 auto* job = new DVcsJob(BazaarUtils::workingCopy(localRepositoryLocation), this);
201 job->setType(VcsJob::JobType::Pull);
202 *job << "bzr" << "pull";
203 if (!localOrRepoLocationSrc.localUrl().isEmpty()) {
204 *job << localOrRepoLocationSrc.localUrl();
205 }
206 // localUrl always makes sense. Even on remote repositories which are handled
207 // transparently.
208 return job;
209}
210
211VcsJob* BazaarPlugin::push(const QUrl& localRepositoryLocation, const VcsLocation& localOrRepoLocationDst)
212{

Callers

nothing calls this directly

Calls 3

localUrlMethod · 0.80
setTypeMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected