cmCTestBZR.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #pragma once
  4. #include "cmConfigure.h" // IWYU pragma: keep
  5. #include <iosfwd>
  6. #include <string>
  7. #include "cmCTestGlobalVC.h"
  8. class cmCTest;
  9. /** \class cmCTestBZR
  10. * \brief Interaction with bzr command-line tool
  11. *
  12. */
  13. class cmCTestBZR : public cmCTestGlobalVC
  14. {
  15. public:
  16. /** Construct with a CTest instance and update log stream. */
  17. cmCTestBZR(cmCTest* ctest, std::ostream& log);
  18. ~cmCTestBZR() override;
  19. private:
  20. // Implement cmCTestVC internal API.
  21. bool NoteOldRevision() override;
  22. bool NoteNewRevision() override;
  23. bool UpdateImpl() override;
  24. // URL of repository directory checked out in the working tree.
  25. std::string URL;
  26. std::string LoadInfo();
  27. bool LoadModifications() override;
  28. bool LoadRevisions() override;
  29. // Parsing helper classes.
  30. class InfoParser;
  31. class LogParser;
  32. class RevnoParser;
  33. class StatusParser;
  34. class UpdateParser;
  35. friend class InfoParser;
  36. friend class LogParser;
  37. friend class RevnoParser;
  38. friend class UpdateParser;
  39. friend class StatusParser;
  40. };