123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- #ifndef cmCTestSVN_h
- #define cmCTestSVN_h
- #include "cmConfigure.h"
- #include "cmCTestGlobalVC.h"
- #include <iosfwd>
- #include <list>
- #include <string>
- #include <vector>
- class cmCTest;
- class cmXMLWriter;
- class cmCTestSVN : public cmCTestGlobalVC
- {
- public:
-
- cmCTestSVN(cmCTest* ctest, std::ostream& log);
- ~cmCTestSVN() override;
- private:
-
- void CleanupImpl() override;
- bool NoteOldRevision() override;
- bool NoteNewRevision() override;
- bool UpdateImpl() override;
- bool RunSVNCommand(std::vector<char const*> const& parameters,
- OutputParser* out, OutputParser* err);
-
- struct SVNInfo
- {
- SVNInfo(const char* path)
- : LocalPath(path)
- {
- }
-
- std::string BuildLocalPath(std::string const& path) const;
-
- std::string LocalPath;
-
- std::string URL;
-
- std::string Root;
-
- std::string Base;
-
- std::string OldRevision;
- std::string NewRevision;
- };
-
- struct Revision;
- friend struct Revision;
-
-
- std::list<SVNInfo> Repositories;
-
- SVNInfo* RootInfo;
- std::string LoadInfo(SVNInfo& svninfo);
- bool LoadRepositories();
- bool LoadModifications() override;
- bool LoadRevisions() override;
- bool LoadRevisions(SVNInfo& svninfo);
- void GuessBase(SVNInfo& svninfo, std::vector<Change> const& changes);
- void DoRevisionSVN(Revision const& revision,
- std::vector<Change> const& changes);
- void WriteXMLGlobal(cmXMLWriter& xml) override;
- class ExternalParser;
-
- class InfoParser;
- class LogParser;
- class StatusParser;
- class UpdateParser;
- friend class InfoParser;
- friend class LogParser;
- friend class StatusParser;
- friend class UpdateParser;
- friend class ExternalParser;
- };
- #endif
|