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.
This commit is contained in:
Brad King 2009-12-18 08:19:41 -05:00
parent a73833d037
commit 3e724b2725
2 changed files with 10 additions and 0 deletions

View File

@ -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";
}

View File

@ -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;