cmCTestSVN: Load and process information from externals
Call LoadExternals() and perform operations on all elements of the Repositories list.
This commit is contained in:
parent
3776690e62
commit
57234dd10a
|
@ -121,9 +121,15 @@ void cmCTestSVN::NoteOldRevision()
|
|||
// Info for root repository
|
||||
this->Repositories.push_back( SVNInfo("") );
|
||||
this->RootInfo = &(this->Repositories.back());
|
||||
// Info for the external repositories
|
||||
this->LoadExternals();
|
||||
|
||||
// Get info for the root repositiry
|
||||
SVNInfo& svninfo = *RootInfo;
|
||||
// Get info for all the repositories
|
||||
std::list<SVNInfo>::iterator itbeg = this->Repositories.begin();
|
||||
std::list<SVNInfo>::iterator itend = this->Repositories.end();
|
||||
for( ; itbeg != itend ; itbeg++)
|
||||
{
|
||||
SVNInfo& svninfo = *itbeg;
|
||||
svninfo.OldRevision = this->LoadInfo(svninfo);
|
||||
this->Log << "Revision for repository '" << svninfo.LocalPath
|
||||
<< "' before update: " << svninfo.OldRevision << "\n";
|
||||
|
@ -131,6 +137,7 @@ void cmCTestSVN::NoteOldRevision()
|
|||
" Old revision of external repository '"
|
||||
<< svninfo.LocalPath << "' is: "
|
||||
<< svninfo.OldRevision << "\n");
|
||||
}
|
||||
|
||||
// Set the global old revision to the one of the root
|
||||
this->OldRevision = this->RootInfo->OldRevision;
|
||||
|
@ -140,8 +147,12 @@ void cmCTestSVN::NoteOldRevision()
|
|||
//----------------------------------------------------------------------------
|
||||
void cmCTestSVN::NoteNewRevision()
|
||||
{
|
||||
// Get info for the root repository
|
||||
SVNInfo& svninfo = *RootInfo;
|
||||
// Get info for the external repositories
|
||||
std::list<SVNInfo>::iterator itbeg = this->Repositories.begin();
|
||||
std::list<SVNInfo>::iterator itend = this->Repositories.end();
|
||||
for( ; itbeg != itend ; itbeg++)
|
||||
{
|
||||
SVNInfo& svninfo = *itbeg;
|
||||
svninfo.NewRevision = this->LoadInfo(svninfo);
|
||||
this->Log << "Revision for repository '" << svninfo.LocalPath
|
||||
<< "' after update: " << svninfo.NewRevision << "\n";
|
||||
|
@ -168,6 +179,8 @@ void cmCTestSVN::NoteNewRevision()
|
|||
this->Log << "Repository '" << svninfo.LocalPath
|
||||
<< "' Base = " << svninfo.Base << "\n";
|
||||
|
||||
}
|
||||
|
||||
// Set the global new revision to the one of the root
|
||||
this->NewRevision = this->RootInfo->NewRevision;
|
||||
}
|
||||
|
@ -379,9 +392,14 @@ private:
|
|||
//----------------------------------------------------------------------------
|
||||
void cmCTestSVN::LoadRevisions()
|
||||
{
|
||||
// Get revision of the root repository
|
||||
SVNInfo& svninfo = *RootInfo;
|
||||
// Get revisions for all the external repositories
|
||||
std::list<SVNInfo>::iterator itbeg = this->Repositories.begin();
|
||||
std::list<SVNInfo>::iterator itend = this->Repositories.end();
|
||||
for( ; itbeg != itend ; itbeg++)
|
||||
{
|
||||
SVNInfo& svninfo = *itbeg;
|
||||
LoadRevisions(svninfo);
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
@ -418,6 +436,14 @@ void cmCTestSVN::DoRevisionSVN(Revision const& revision,
|
|||
{
|
||||
this->GuessBase(*this->RootInfo, changes);
|
||||
}
|
||||
|
||||
// Ignore changes in the old revision for external repositories
|
||||
if(revision.Rev == revision.SVNInfo->OldRevision
|
||||
&& revision.SVNInfo->LocalPath != "")
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
this->cmCTestGlobalVC::DoRevision(revision, changes);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue