diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-02-16 18:45:08 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-02-16 18:45:08 (GMT) |
commit | 8ec1ab2ab07dad285919cd56722ffb08a66aae48 (patch) | |
tree | 1e258031fd6c6f7d06b5f495aa1cf292293fe792 /Source | |
parent | 26f3b149193df0b6abeddbc5592041b2bec435b9 (diff) | |
download | CMake-8ec1ab2ab07dad285919cd56722ffb08a66aae48.zip CMake-8ec1ab2ab07dad285919cd56722ffb08a66aae48.tar.gz CMake-8ec1ab2ab07dad285919cd56722ffb08a66aae48.tar.bz2 |
BUG: If project is up to date, handle that case
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CTest/cmCTestUpdateHandler.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestUpdateHandler.cxx b/Source/CTest/cmCTestUpdateHandler.cxx index e3a4edf..8fccebb 100644 --- a/Source/CTest/cmCTestUpdateHandler.cxx +++ b/Source/CTest/cmCTestUpdateHandler.cxx @@ -425,7 +425,7 @@ int cmCTestUpdateHandler::ProcessHandler() // Subversion style regular expressions cmsys::RegularExpression svn_status_line_regex("^ *([0-9]+) *([0-9]+) *([^ ]+) *([^ ][^\t\r\n]*)[ \t\r\n]*$"); - cmsys::RegularExpression svn_latest_revision_regex("Updated to revision ([0-9]+)."); + cmsys::RegularExpression svn_latest_revision_regex("(Updated to|At) revision ([0-9]+)\\."); cmsys::RegularExpression file_update_line("([A-Z]) *(.*)"); std::string current_path = "<no-path>"; @@ -443,7 +443,7 @@ int cmCTestUpdateHandler::ProcessHandler() const char* line = lines[cc].c_str(); if ( svn_latest_revision_regex.find(line) ) { - svn_latest_revision = atoi(svn_latest_revision_regex.match(1).c_str()); + svn_latest_revision = atoi(svn_latest_revision_regex.match(2).c_str()); } } } |