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