summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestSVN.cxx
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 /Source/CTest/cmCTestSVN.cxx
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.
Diffstat (limited to 'Source/CTest/cmCTestSVN.cxx')
-rw-r--r--Source/CTest/cmCTestSVN.cxx8
1 files changed, 8 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";
+}