| 136 | } |
| 137 | |
| 138 | bool 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 | |
| 162 | bool cmCTestVC::NoteOldRevision() |
| 163 | { |
no test coverage detected