2016-09-27 22:01:08 +03: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 19:08:05 +04:00
|
|
|
#ifndef cmCTestHG_h
|
|
|
|
#define cmCTestHG_h
|
|
|
|
|
2016-08-24 23:01:40 +03:00
|
|
|
#include <cmConfigure.h>
|
|
|
|
|
2009-07-10 19:08:05 +04:00
|
|
|
#include "cmCTestGlobalVC.h"
|
|
|
|
|
2016-08-24 23:01:40 +03:00
|
|
|
#include <iosfwd>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class cmCTest;
|
|
|
|
|
2009-07-10 19:08:05 +04:00
|
|
|
/** \class cmCTestHG
|
|
|
|
* \brief Interaction with Mercurial command-line tool
|
|
|
|
*
|
|
|
|
*/
|
2016-05-16 17:34:04 +03:00
|
|
|
class cmCTestHG : public cmCTestGlobalVC
|
2009-07-10 19:08:05 +04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
/** Construct with a CTest instance and update log stream. */
|
|
|
|
cmCTestHG(cmCTest* ctest, std::ostream& log);
|
|
|
|
|
2016-06-27 22:25:27 +03:00
|
|
|
~cmCTestHG() CM_OVERRIDE;
|
2009-07-10 19:08:05 +04:00
|
|
|
|
|
|
|
private:
|
|
|
|
std::string GetWorkingRevision();
|
2016-06-27 22:25:27 +03:00
|
|
|
void NoteOldRevision() CM_OVERRIDE;
|
|
|
|
void NoteNewRevision() CM_OVERRIDE;
|
|
|
|
bool UpdateImpl() CM_OVERRIDE;
|
2009-07-10 19:08:05 +04:00
|
|
|
|
2016-06-27 22:25:27 +03:00
|
|
|
void LoadRevisions() CM_OVERRIDE;
|
|
|
|
void LoadModifications() CM_OVERRIDE;
|
2009-07-10 19:08:05 +04:00
|
|
|
|
|
|
|
// Parsing helper classes.
|
|
|
|
class IdentifyParser;
|
|
|
|
class LogParser;
|
2016-08-24 23:01:40 +03:00
|
|
|
class StatusParser;
|
|
|
|
|
2009-07-10 19:08:05 +04:00
|
|
|
friend class IdentifyParser;
|
|
|
|
friend class LogParser;
|
2016-08-24 23:01:40 +03:00
|
|
|
friend class StatusParser;
|
2009-07-10 19:08:05 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|