summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestUpdateHandler.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-02-24 14:09:43 (GMT)
committerBrad King <brad.king@kitware.com>2009-02-24 14:09:43 (GMT)
commit0d66aa3915dff6d5851e7c0e122c981ed0695161 (patch)
tree1df41a40eabc9bca50ac6b10185d9f43b232bda9 /Source/CTest/cmCTestUpdateHandler.h
parent844df756769b23e225e32fe334a7df65f264262f (diff)
downloadCMake-0d66aa3915dff6d5851e7c0e122c981ed0695161.zip
CMake-0d66aa3915dff6d5851e7c0e122c981ed0695161.tar.gz
CMake-0d66aa3915dff6d5851e7c0e122c981ed0695161.tar.bz2
ENH: Factor out VCS tool detection
In cmCTestUpdateHandler, this factors out version control tool detection from the monolithic cmCTestUpdateHandler::ProcessHandler to separate methods. This also places priority on detection of the tool managing the source tree since using any other tool will cause errors.
Diffstat (limited to 'Source/CTest/cmCTestUpdateHandler.h')
-rw-r--r--Source/CTest/cmCTestUpdateHandler.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestUpdateHandler.h b/Source/CTest/cmCTestUpdateHandler.h
index e6a5ac8..f64b8f2 100644
--- a/Source/CTest/cmCTestUpdateHandler.h
+++ b/Source/CTest/cmCTestUpdateHandler.h
@@ -63,7 +63,13 @@ private:
// Determine the type of version control
int DetermineType(const char* cmd, const char* type);
+ // The VCS command to update the working tree.
+ std::string UpdateCommand;
+ int UpdateType;
+
bool InitialCheckout(std::ostream& ofs);
+ int DetectVCS(const char* dir);
+ bool SelectVCS();
};
#if defined(__sgi) && !defined(__GNUC__)