From 6ca7664b90af3d5e3baf35899aafd8b735dbd18e Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Mon, 11 Jul 2005 11:16:14 -0400 Subject: [PATCH] BUG: Remove warning when using CVS --- Source/CTest/cmCTestUpdateHandler.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/CTest/cmCTestUpdateHandler.cxx b/Source/CTest/cmCTestUpdateHandler.cxx index a7a5f1a18..9f83b930c 100644 --- a/Source/CTest/cmCTestUpdateHandler.cxx +++ b/Source/CTest/cmCTestUpdateHandler.cxx @@ -546,14 +546,14 @@ int cmCTestUpdateHandler::ProcessHandler() svn_latest_revision = atoi(svn_latest_revision_regex.match(2).c_str()); } } - } - if ( svn_latest_revision <= 0 ) - { - cmCTestLog(m_CTest, ERROR_MESSAGE, "Problem determining the current revision of the repository from output:" << std::endl << goutput.c_str() << std::endl); - } - else if ( updateType == cmCTestUpdateHandler::e_SVN ) - { - cmCTestLog(m_CTest, HANDLER_OUTPUT, " Current revision of repository is: " << svn_latest_revision << std::endl); + if ( svn_latest_revision <= 0 ) + { + cmCTestLog(m_CTest, ERROR_MESSAGE, "Problem determining the current revision of the repository from output:" << std::endl << goutput.c_str() << std::endl); + } + else + { + cmCTestLog(m_CTest, HANDLER_OUTPUT, " Current revision of repository is: " << svn_latest_revision << std::endl); + } } cmCTestLog(m_CTest, HANDLER_OUTPUT, " Gathering version information (each . represents one updated file):" << std::endl);