| 192 | } |
| 193 | |
| 194 | VcsJob* 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 | |
| 211 | VcsJob* BazaarPlugin::push(const QUrl& localRepositoryLocation, const VcsLocation& localOrRepoLocationDst) |
| 212 | { |