diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-02-16 19:24:43 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-02-16 19:24:43 (GMT) |
commit | 71f00352fab8875e47698e3018d854d9906c9b39 (patch) | |
tree | 52e0a2210f14938e7d9bf1a7c3588c6f6276c6ca /Source/CTest/cmCTestUpdateHandler.cxx | |
parent | 8ec1ab2ab07dad285919cd56722ffb08a66aae48 (diff) | |
download | CMake-71f00352fab8875e47698e3018d854d9906c9b39.zip CMake-71f00352fab8875e47698e3018d854d9906c9b39.tar.gz CMake-71f00352fab8875e47698e3018d854d9906c9b39.tar.bz2 |
ENH: Improve output, and handle 'G' files in subversion
Diffstat (limited to 'Source/CTest/cmCTestUpdateHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestUpdateHandler.cxx | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/Source/CTest/cmCTestUpdateHandler.cxx b/Source/CTest/cmCTestUpdateHandler.cxx index 8fccebb..533a6c8 100644 --- a/Source/CTest/cmCTestUpdateHandler.cxx +++ b/Source/CTest/cmCTestUpdateHandler.cxx @@ -453,11 +453,7 @@ int cmCTestUpdateHandler::ProcessHandler() } std::cout << " Gathering version information (each . represents one updated file):" << std::endl; - if ( !m_Verbose ) - { - std::cout << " "; - std::cout.flush(); - } + int file_count = 0; for ( cc= 0 ; cc < lines.size(); cc ++ ) { const char* line = lines[cc].c_str(); @@ -465,13 +461,18 @@ int cmCTestUpdateHandler::ProcessHandler() { if ( !m_Verbose ) { + if ( file_count == 0 ) + { + std::cout << " "; + std::cout.flush(); + } std::cout << "."; } std::cout.flush(); std::string upChar = file_update_line.match(1); std::string upFile = file_update_line.match(2); char mod = upChar[0]; - if ( mod != 'M' && mod != 'C' ) + if ( mod != 'M' && mod != 'C' && mod != 'G' ) { count ++; } @@ -676,6 +677,11 @@ int cmCTestUpdateHandler::ProcessHandler() num_conflicting ++; os << "\t<Conflicting>" << std::endl; } + else if ( mod == 'G' ) + { + num_conflicting ++; + os << "\t<Conflicting>" << std::endl; + } else if ( mod == 'M' ) { num_modified ++; @@ -731,6 +737,10 @@ int cmCTestUpdateHandler::ProcessHandler() { os << "\t</Conflicting>" << std::endl; } + else if ( mod == 'G' ) + { + os << "\t</Conflicting>" << std::endl; + } else if ( mod == 'M' ) { os << "\t</Modified>" << std::endl; @@ -747,9 +757,13 @@ int cmCTestUpdateHandler::ProcessHandler() current_path = path; } + file_count ++; } } - std::cout << std::endl; + if ( file_count ) + { + std::cout << std::endl; + } if ( num_updated ) { std::cout << " Found " << num_updated << " updated files" << std::endl; @@ -764,6 +778,10 @@ int cmCTestUpdateHandler::ProcessHandler() std::cout << " Found " << num_conflicting << " conflicting files" << std::endl; } + if ( num_modified == 0 && num_conflicting == 0 && num_updated == 0 ) + { + std::cout << " Project is up-to-date" << std::endl; + } if ( !first_file ) { os << "\t</Directory>" << std::endl; |