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:
parent
354f7eb9ab
commit
1b499f0019
|
@ -807,6 +807,10 @@ int cmCTestUpdateHandler::ProcessHandler()
|
||||||
ofs << output << std::endl;
|
ofs << output << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
res = false;
|
||||||
|
}
|
||||||
if ( res )
|
if ( res )
|
||||||
{
|
{
|
||||||
cmCTestLog(this->CTest, DEBUG, output << std::endl);
|
cmCTestLog(this->CTest, DEBUG, output << std::endl);
|
||||||
|
|
Loading…
Reference in New Issue