summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestSVN.h
diff options
context:
space:
mode:
authorXavier Besseron <xavier.besseron@uni.lu>2012-09-03 08:45:05 (GMT)
committerBrad King <brad.king@kitware.com>2012-09-03 14:38:51 (GMT)
commitaa1076f4600a94494da355d641aa0a5773a67863 (patch)
tree29663c4cce1e7010e39eba3f82a5ea3f85e2fcb0 /Source/CTest/cmCTestSVN.h
parent19d9f5908b541a3d61361cbfd1a315ac3f512543 (diff)
downloadCMake-aa1076f4600a94494da355d641aa0a5773a67863.zip
CMake-aa1076f4600a94494da355d641aa0a5773a67863.tar.gz
CMake-aa1076f4600a94494da355d641aa0a5773a67863.tar.bz2
cmCTestSVN: Add the new SVNInfo structure
It represents information of an SVN repository. It can be the base repository or an external one.
Diffstat (limited to 'Source/CTest/cmCTestSVN.h')
-rw-r--r--Source/CTest/cmCTestSVN.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestSVN.h b/Source/CTest/cmCTestSVN.h
index f72c58f..97eeaf5 100644
--- a/Source/CTest/cmCTestSVN.h
+++ b/Source/CTest/cmCTestSVN.h
@@ -42,6 +42,31 @@ private:
// Directory under repository root checked out in working tree.
std::string Base;
+ // Information about an SVN repository (root repository or external)
+ struct SVNInfo {
+
+ SVNInfo(const char* path) : LocalPath(path) {}
+ // Remove base from the filename
+ std::string BuildLocalPath(std::string const& path) const;
+
+ // LocalPath relative to the main source directory.
+ std::string LocalPath;
+
+ // 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;
+
+ // Old and new repository revisions.
+ std::string OldRevision;
+ std::string NewRevision;
+
+ };
+
std::string LoadInfo();
void LoadModifications();
void LoadRevisions();