cmCTestHG.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc.
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmCTestHG_h
  11. #define cmCTestHG_h
  12. #include "cmCTestGlobalVC.h"
  13. /** \class cmCTestHG
  14. * \brief Interaction with Mercurial command-line tool
  15. *
  16. */
  17. class cmCTestHG: public cmCTestGlobalVC
  18. {
  19. public:
  20. /** Construct with a CTest instance and update log stream. */
  21. cmCTestHG(cmCTest* ctest, std::ostream& log);
  22. virtual ~cmCTestHG();
  23. private:
  24. std::string GetWorkingRevision();
  25. virtual void NoteOldRevision();
  26. virtual void NoteNewRevision();
  27. virtual bool UpdateImpl();
  28. void LoadRevisions();
  29. void LoadModifications();
  30. // Parsing helper classes.
  31. class IdentifyParser;
  32. class StatusParser;
  33. class LogParser;
  34. friend class IdentifyParser;
  35. friend class StatusParser;
  36. friend class LogParser;
  37. };
  38. #endif