cmCTestSVN: Extend Revision struct with SVN repo information
Also rename DoRevision to DoRevisionSVN since the signature changes.
This commit is contained in:
parent
aa1076f460
commit
2f204bc176
|
@ -18,6 +18,11 @@
|
||||||
|
|
||||||
#include <cmsys/RegularExpression.hxx>
|
#include <cmsys/RegularExpression.hxx>
|
||||||
|
|
||||||
|
struct cmCTestSVN::Revision: public cmCTestVC::Revision
|
||||||
|
{
|
||||||
|
cmCTestSVN::SVNInfo* SVNInfo;
|
||||||
|
};
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
cmCTestSVN::cmCTestSVN(cmCTest* ct, std::ostream& log):
|
cmCTestSVN::cmCTestSVN(cmCTest* ct, std::ostream& log):
|
||||||
cmCTestGlobalVC(ct, log)
|
cmCTestGlobalVC(ct, log)
|
||||||
|
@ -325,7 +330,7 @@ private:
|
||||||
{
|
{
|
||||||
if(strcmp(name, "logentry") == 0)
|
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())
|
else if(strcmp(name, "path") == 0 && !this->CData.empty())
|
||||||
{
|
{
|
||||||
|
@ -378,8 +383,8 @@ void cmCTestSVN::LoadRevisions()
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void cmCTestSVN::DoRevision(Revision const& revision,
|
void cmCTestSVN::DoRevisionSVN(Revision const& revision,
|
||||||
std::vector<Change> const& changes)
|
std::vector<Change> const& changes)
|
||||||
{
|
{
|
||||||
// Guess the base checkout path from the changes if necessary.
|
// Guess the base checkout path from the changes if necessary.
|
||||||
if(this->Base.empty() && !changes.empty())
|
if(this->Base.empty() && !changes.empty())
|
||||||
|
|
|
@ -67,6 +67,9 @@ private:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Extended revision structure to include info about external it refers to.
|
||||||
|
struct Revision;
|
||||||
|
|
||||||
std::string LoadInfo();
|
std::string LoadInfo();
|
||||||
void LoadModifications();
|
void LoadModifications();
|
||||||
void LoadRevisions();
|
void LoadRevisions();
|
||||||
|
@ -74,8 +77,8 @@ private:
|
||||||
void GuessBase(std::vector<Change> const& changes);
|
void GuessBase(std::vector<Change> const& changes);
|
||||||
const char* LocalPath(std::string const& path);
|
const char* LocalPath(std::string const& path);
|
||||||
|
|
||||||
void DoRevision(Revision const& revision,
|
void DoRevisionSVN(Revision const& revision,
|
||||||
std::vector<Change> const& changes);
|
std::vector<Change> const& changes);
|
||||||
|
|
||||||
void WriteXMLGlobal(std::ostream& xml);
|
void WriteXMLGlobal(std::ostream& xml);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue