cmCTestHG.h 1002 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmCTestHG_h
  4. #define cmCTestHG_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include "cmCTestGlobalVC.h"
  7. #include <iosfwd>
  8. #include <string>
  9. class cmCTest;
  10. /** \class cmCTestHG
  11. * \brief Interaction with Mercurial command-line tool
  12. *
  13. */
  14. class cmCTestHG : public cmCTestGlobalVC
  15. {
  16. public:
  17. /** Construct with a CTest instance and update log stream. */
  18. cmCTestHG(cmCTest* ctest, std::ostream& log);
  19. ~cmCTestHG() override;
  20. private:
  21. std::string GetWorkingRevision();
  22. bool NoteOldRevision() override;
  23. bool NoteNewRevision() override;
  24. bool UpdateImpl() override;
  25. bool LoadRevisions() override;
  26. bool LoadModifications() override;
  27. // Parsing helper classes.
  28. class IdentifyParser;
  29. class LogParser;
  30. class StatusParser;
  31. friend class IdentifyParser;
  32. friend class LogParser;
  33. friend class StatusParser;
  34. };
  35. #endif