summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorXavier Besseron <xavier.besseron@uni.lu>2012-08-24 08:30:09 (GMT)
committerBrad King <brad.king@kitware.com>2012-09-04 12:35:35 (GMT)
commit2f204bc176e418e810de7034903974e7edb46b14 (patch)
tree1dffc6e69bef5e5c46d853e6e55faeb380c883e0 /Source/CTest
parentaa1076f4600a94494da355d641aa0a5773a67863 (diff)
downloadCMake-2f204bc176e418e810de7034903974e7edb46b14.zip
CMake-2f204bc176e418e810de7034903974e7edb46b14.tar.gz
CMake-2f204bc176e418e810de7034903974e7edb46b14.tar.bz2
cmCTestSVN: Extend Revision struct with SVN repo information
Also rename DoRevision to DoRevisionSVN since the signature changes.
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestSVN.cxx11
-rw-r--r--Source/CTest/cmCTestSVN.h7
2 files changed, 13 insertions, 5 deletions
diff --git a/Source/CTest/cmCTestSVN.cxx b/Source/CTest/cmCTestSVN.cxx
index 7ca87e2..15d9487 100644
--- a/Source/CTest/cmCTestSVN.cxx
+++ b/Source/CTest/cmCTestSVN.cxx
@@ -18,6 +18,11 @@
#include <cmsys/RegularExpression.hxx>
+struct cmCTestSVN::Revision: public cmCTestVC::Revision
+{
+ cmCTestSVN::SVNInfo* SVNInfo;
+};
+
//----------------------------------------------------------------------------
cmCTestSVN::cmCTestSVN(cmCTest* ct, std::ostream& log):
cmCTestGlobalVC(ct, log)
@@ -325,7 +330,7 @@ private:
{
if(strcmp(name, "logentry") == 0)
{
- this->SVN->DoRevision(this->Rev, this->Changes);
+ this->SVN->DoRevisionSVN(this->Rev, this->Changes);
}
else if(strcmp(name, "path") == 0 && !this->CData.empty())
{
@@ -378,8 +383,8 @@ void cmCTestSVN::LoadRevisions()
}
//----------------------------------------------------------------------------
-void cmCTestSVN::DoRevision(Revision const& revision,
- std::vector<Change> const& changes)
+void cmCTestSVN::DoRevisionSVN(Revision const& revision,
+ std::vector<Change> const& changes)
{
// Guess the base checkout path from the changes if necessary.
if(this->Base.empty() && !changes.empty())
diff --git a/Source/CTest/cmCTestSVN.h b/Source/CTest/cmCTestSVN.h
index 97eeaf5..12feba9 100644
--- a/Source/CTest/cmCTestSVN.h
+++ b/Source/CTest/cmCTestSVN.h
@@ -67,6 +67,9 @@ private:
};
+ // Extended revision structure to include info about external it refers to.
+ struct Revision;
+
std::string LoadInfo();
void LoadModifications();
void LoadRevisions();
@@ -74,8 +77,8 @@ private:
void GuessBase(std::vector<Change> const& changes);
const char* LocalPath(std::string const& path);
- void DoRevision(Revision const& revision,
- std::vector<Change> const& changes);
+ void DoRevisionSVN(Revision const& revision,
+ std::vector<Change> const& changes);
void WriteXMLGlobal(std::ostream& xml);