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.
This commit is contained in:
Brad King 2009-02-16 10:01:43 -05:00
parent 354f7eb9ab
commit 1b499f0019
1 changed files with 4 additions and 0 deletions

View File

@ -807,6 +807,10 @@ int cmCTestUpdateHandler::ProcessHandler()
ofs << output << std::endl;
}
}
else
{
res = false;
}
if ( res )
{
cmCTestLog(this->CTest, DEBUG, output << std::endl);