diff options
author | Brad King <brad.king@kitware.com> | 2009-02-16 15:01:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-02-16 15:01:43 (GMT) |
commit | 1b499f0019d748c7ea47fafd64a69c7fa0021a06 (patch) | |
tree | 24d7823f507135b0a6dd25e27b6ad2cd97d93830 /Source | |
parent | 354f7eb9ab10c489fb6890f641283b32788f720b (diff) | |
download | CMake-1b499f0019d748c7ea47fafd64a69c7fa0021a06.zip CMake-1b499f0019d748c7ea47fafd64a69c7fa0021a06.tar.gz CMake-1b499f0019d748c7ea47fafd64a69c7fa0021a06.tar.bz2 |
BUG: Fix svn update logic for modified files
The main svn update parsing loop in cmCTestUpdateHandler previously had
a logic error because the variable 'res' was not reset for each
iteration. For a locally modified file it would report the update info
for the previous non-modified file, or nothing if there was no previous
file. This fixes the logic by setting variable 'res' in both control
paths for each iteration. See issue #8168.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CTest/cmCTestUpdateHandler.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestUpdateHandler.cxx b/Source/CTest/cmCTestUpdateHandler.cxx index e3f0984..45c20ac 100644 --- a/Source/CTest/cmCTestUpdateHandler.cxx +++ b/Source/CTest/cmCTestUpdateHandler.cxx @@ -807,6 +807,10 @@ int cmCTestUpdateHandler::ProcessHandler() ofs << output << std::endl; } } + else + { + res = false; + } if ( res ) { cmCTestLog(this->CTest, DEBUG, output << std::endl); |