cmCTestHG.h 967 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 cmCTestHG
  10. * \brief Interaction with Mercurial command-line tool
  11. *
  12. */
  13. class cmCTestHG : public cmCTestGlobalVC
  14. {
  15. public:
  16. /** Construct with a CTest instance and update log stream. */
  17. cmCTestHG(cmCTest* ctest, std::ostream& log);
  18. ~cmCTestHG() override;
  19. private:
  20. std::string GetWorkingRevision();
  21. bool NoteOldRevision() override;
  22. bool NoteNewRevision() override;
  23. bool UpdateImpl() override;
  24. bool LoadRevisions() override;
  25. bool LoadModifications() override;
  26. // Parsing helper classes.
  27. class IdentifyParser;
  28. class LogParser;
  29. class StatusParser;
  30. friend class IdentifyParser;
  31. friend class LogParser;
  32. friend class StatusParser;
  33. };