cmake/Source/CTest/cmCTestHG.h

47 lines
1002 B
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2009-10-04 10:30:41 +03:00
#ifndef cmCTestHG_h
#define cmCTestHG_h
2018-01-26 17:06:56 +01:00
#include "cmConfigure.h" // IWYU pragma: keep
2016-10-30 18:24:19 +01:00
2009-10-04 10:30:41 +03:00
#include "cmCTestGlobalVC.h"
2016-10-30 18:24:19 +01:00
#include <iosfwd>
#include <string>
class cmCTest;
2009-10-04 10:30:41 +03:00
/** \class cmCTestHG
* \brief Interaction with Mercurial command-line tool
*
*/
2016-07-09 11:21:54 +02:00
class cmCTestHG : public cmCTestGlobalVC
2009-10-04 10:30:41 +03:00
{
public:
/** Construct with a CTest instance and update log stream. */
cmCTestHG(cmCTest* ctest, std::ostream& log);
2018-01-26 17:06:56 +01:00
~cmCTestHG() override;
2009-10-04 10:30:41 +03:00
private:
std::string GetWorkingRevision();
2018-01-26 17:06:56 +01:00
bool NoteOldRevision() override;
bool NoteNewRevision() override;
bool UpdateImpl() override;
2009-10-04 10:30:41 +03:00
2018-01-26 17:06:56 +01:00
bool LoadRevisions() override;
bool LoadModifications() override;
2009-10-04 10:30:41 +03:00
// Parsing helper classes.
class IdentifyParser;
class LogParser;
2016-10-30 18:24:19 +01:00
class StatusParser;
2009-10-04 10:30:41 +03:00
friend class IdentifyParser;
friend class LogParser;
2016-10-30 18:24:19 +01:00
friend class StatusParser;
2009-10-04 10:30:41 +03:00
};
#endif