2009-09-28 19:43:28 +04:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2009 Kitware, Inc.
|
2009-07-10 19:08:05 +04:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
2009-07-10 19:08:05 +04:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the License for more information.
|
|
|
|
============================================================================*/
|
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
|