| 362 | }; |
| 363 | |
| 364 | bool cmCTestBZR::UpdateImpl() |
| 365 | { |
| 366 | // Get user-specified update options. |
| 367 | std::string opts = this->Makefile->GetSafeDefinition("CTEST_UPDATE_OPTIONS"); |
| 368 | if (opts.empty()) { |
| 369 | opts = this->Makefile->GetSafeDefinition("CTEST_BZR_UPDATE_OPTIONS"); |
| 370 | } |
| 371 | std::vector<std::string> args = cmSystemTools::ParseArguments(opts); |
| 372 | |
| 373 | // TODO: if(this->CTest->GetTestModel() == cmCTest::NIGHTLY) |
| 374 | |
| 375 | // Use "bzr pull" to update the working tree. |
| 376 | std::vector<std::string> bzr_update; |
| 377 | bzr_update.push_back(this->CommandLineTool); |
| 378 | bzr_update.emplace_back("pull"); |
| 379 | |
| 380 | cm::append(bzr_update, args); |
| 381 | |
| 382 | bzr_update.push_back(this->URL); |
| 383 | |
| 384 | // For some reason bzr uses stderr to display the update status. |
| 385 | OutputLogger out(this->Log, "pull-out> "); |
| 386 | UpdateParser err(this, "pull-err> "); |
| 387 | return this->RunUpdateCommand(bzr_update, &out, &err); |
| 388 | } |
| 389 | |
| 390 | bool cmCTestBZR::LoadRevisions() |
| 391 | { |
nothing calls this directly
no test coverage detected