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

Method Update

Source/CTest/cmCTestVC.cxx:138–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138bool cmCTestVC::Update()
139{
140 bool result = true;
141
142 // Use the explicitly specified version.
143 std::string versionOverride =
144 this->Makefile->GetSafeDefinition("CTEST_UPDATE_VERSION_OVERRIDE");
145 if (!versionOverride.empty()) {
146 this->SetNewRevision(versionOverride);
147 return true;
148 }
149
150 // if update version only is on then do not actually update,
151 // just note the current version and finish
152 if (!this->Makefile->IsOn("CTEST_UPDATE_VERSION_ONLY")) {
153 result = this->NoteOldRevision() && result;
154 this->Log << "--- Begin Update ---\n";
155 result = this->UpdateImpl() && result;
156 this->Log << "--- End Update ---\n";
157 }
158 result = this->NoteNewRevision() && result;
159 return result;
160}
161
162bool cmCTestVC::NoteOldRevision()
163{

Callers 1

ExecuteUpdateMethod · 0.45

Calls 6

SetNewRevisionMethod · 0.95
NoteOldRevisionMethod · 0.95
UpdateImplMethod · 0.95
NoteNewRevisionMethod · 0.95
emptyMethod · 0.45
IsOnMethod · 0.45

Tested by

no test coverage detected