summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-12-18 13:19:41 (GMT)
committerBrad King <brad.king@kitware.com>2009-12-18 13:19:41 (GMT)
commit3e724b2725b3467689c3c09dcacf406230a47017 (patch)
tree9d7624a462204019122aeec2dd15c60c7c026e7e
parenta73833d03742c504a6b8927cc276d5e34e1aeab2 (diff)
downloadCMake-3e724b2725b3467689c3c09dcacf406230a47017.zip
CMake-3e724b2725b3467689c3c09dcacf406230a47017.tar.gz
CMake-3e724b2725b3467689c3c09dcacf406230a47017.tar.bz2
Submit Subversion directory path in Update.xml
A Subversion revision is unique across the entire repository, but work trees typically correspond only to a subdirectory below the root path. In order to specify the version of the source code that was tested, CTest now submits a <SVNPath> element in Update.xml that specifies the directory of the repository that corresponds to the work tree. In combination with the revision number this uniquely specifies the tested source. See issue #7541.
-rw-r--r--Source/CTest/cmCTestSVN.cxx8
-rw-r--r--Source/CTest/cmCTestSVN.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestSVN.cxx b/Source/CTest/cmCTestSVN.cxx
index 82e5845..fab9a8c 100644
--- a/Source/CTest/cmCTestSVN.cxx
+++ b/Source/CTest/cmCTestSVN.cxx
@@ -440,3 +440,11 @@ void cmCTestSVN::LoadModifications()
OutputLogger err(this->Log, "status-err> ");
this->RunChild(svn_status, &out, &err);
}
+
+//----------------------------------------------------------------------------
+void cmCTestSVN::WriteXMLGlobal(std::ostream& xml)
+{
+ this->cmCTestGlobalVC::WriteXMLGlobal(xml);
+
+ xml << "\t<SVNPath>" << this->Base << "</SVNPath>\n";
+}
diff --git a/Source/CTest/cmCTestSVN.h b/Source/CTest/cmCTestSVN.h
index ff9ff0f..f72c58f 100644
--- a/Source/CTest/cmCTestSVN.h
+++ b/Source/CTest/cmCTestSVN.h
@@ -52,6 +52,8 @@ private:
void DoRevision(Revision const& revision,
std::vector<Change> const& changes);
+ void WriteXMLGlobal(std::ostream& xml);
+
// Parsing helper classes.
class InfoParser;
class LogParser;