MCPcopy Create free account
hub / github.com/Kitware/CMake / UpdateImpl

Method UpdateImpl

Source/CTest/cmCTestBZR.cxx:364–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362};
363
364bool 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
390bool cmCTestBZR::LoadRevisions()
391{

Callers

nothing calls this directly

Calls 5

appendFunction · 0.85
push_backMethod · 0.80
emplace_backMethod · 0.80
RunUpdateCommandMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected