From 8ec1ab2ab07dad285919cd56722ffb08a66aae48 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Wed, 16 Feb 2005 13:45:08 -0500 Subject: [PATCH] BUG: If project is up to date, handle that case --- Source/CTest/cmCTestUpdateHandler.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/CTest/cmCTestUpdateHandler.cxx b/Source/CTest/cmCTestUpdateHandler.cxx index e3a4edf79..8fccebb43 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 = ""; @@ -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()); } } }