summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestSVN.h
diff options
context:
space:
mode:
authorXavier Besseron <xavier.besseron@uni.lu>2012-09-03 08:50:07 (GMT)
committerBrad King <brad.king@kitware.com>2012-09-04 12:35:35 (GMT)
commit41f0f83542ce8d69e4d9a4512a6dc66327f20c8d (patch)
tree55b0815c643fc1fdd53ae0f03b3b99b843bb9adc /Source/CTest/cmCTestSVN.h
parentfb6d5136926fc142fa893f853b62c5ca8df04d6c (diff)
downloadCMake-41f0f83542ce8d69e4d9a4512a6dc66327f20c8d.zip
CMake-41f0f83542ce8d69e4d9a4512a6dc66327f20c8d.tar.gz
CMake-41f0f83542ce8d69e4d9a4512a6dc66327f20c8d.tar.bz2
cmCTestSVN: Use the SVNInfo structure
- Suppress the URL, Root, Base fields from the cmCTestSVN class - Update the code to use RootInfo instead - LoadInfo(), GuessBase(), and a new LoadRevision() functions work on a given SVNInfo - Use the implementation from the base class for LocalPath(), correct path is built by SVNInfo::BuildLocalPath() instead
Diffstat (limited to 'Source/CTest/cmCTestSVN.h')
-rw-r--r--Source/CTest/cmCTestSVN.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/Source/CTest/cmCTestSVN.h b/Source/CTest/cmCTestSVN.h
index a084d40..4fb37a6 100644
--- a/Source/CTest/cmCTestSVN.h
+++ b/Source/CTest/cmCTestSVN.h
@@ -33,15 +33,6 @@ private:
virtual void NoteNewRevision();
virtual bool UpdateImpl();
- // URL of repository directory checked out in the working tree.
- std::string URL;
-
- // URL of repository root directory.
- std::string Root;
-
- // Directory under repository root checked out in working tree.
- std::string Base;
-
// Information about an SVN repository (root repository or external)
struct SVNInfo {
@@ -76,12 +67,12 @@ private:
// Pointer to the infos of the root repository.
SVNInfo* RootInfo;
- std::string LoadInfo();
+ std::string LoadInfo(SVNInfo& svninfo);
void LoadModifications();
void LoadRevisions();
+ void LoadRevisions(SVNInfo& svninfo);
- void GuessBase(std::vector<Change> const& changes);
- const char* LocalPath(std::string const& path);
+ void GuessBase(SVNInfo &svninfo, std::vector<Change> const& changes);
void DoRevisionSVN(Revision const& revision,
std::vector<Change> const& changes);