cmCTestHG.h 1001 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 cmMakefile;
  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, cmMakefile* mf, 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. };