summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestSVN.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-02-24 17:50:15 (GMT)
committerBrad King <brad.king@kitware.com>2009-02-24 17:50:15 (GMT)
commitfdd0d2a32bffc3742b5d40c066a61794135bd6f4 (patch)
tree6c2e02dfb74118bb869bee0daef1e049124bc836 /Source/CTest/cmCTestSVN.cxx
parent4e4f2a3a10327978c8de493fe0f411e656b7d2f9 (diff)
downloadCMake-fdd0d2a32bffc3742b5d40c066a61794135bd6f4.zip
CMake-fdd0d2a32bffc3742b5d40c066a61794135bd6f4.tar.gz
CMake-fdd0d2a32bffc3742b5d40c066a61794135bd6f4.tar.bz2
ENH: Factor out svn work tree cleanup
This removes work tree cleanup from cmCTestUpdateHandler and adds an interface for it in cmCTestVC with an implementation in cmCTestSVN.
Diffstat (limited to 'Source/CTest/cmCTestSVN.cxx')
-rw-r--r--Source/CTest/cmCTestSVN.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestSVN.cxx b/Source/CTest/cmCTestSVN.cxx
index f7111c9..9396404 100644
--- a/Source/CTest/cmCTestSVN.cxx
+++ b/Source/CTest/cmCTestSVN.cxx
@@ -25,3 +25,13 @@ cmCTestSVN::cmCTestSVN(cmCTest* ct, std::ostream& log): cmCTestVC(ct, log)
cmCTestSVN::~cmCTestSVN()
{
}
+
+//----------------------------------------------------------------------------
+void cmCTestSVN::CleanupImpl()
+{
+ const char* svn = this->CommandLineTool.c_str();
+ const char* svn_cleanup[] = {svn, "cleanup", 0};
+ OutputLogger out(this->Log, "cleanup-out> ");
+ OutputLogger err(this->Log, "cleanup-err> ");
+ this->RunChild(svn_cleanup, &out, &err);
+}