cmake/Source/CTest/cmCTestBZR.h

52 lines
1.1 KiB
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. */
2021-09-14 00:13:48 +02:00
#pragma once
2009-10-04 10:30:41 +03:00
2018-01-26 17:06:56 +01:00
#include "cmConfigure.h" // IWYU pragma: keep
2016-10-30 18:24:19 +01:00
#include <iosfwd>
#include <string>
2020-02-01 23:06:01 +01:00
#include "cmCTestGlobalVC.h"
2016-10-30 18:24:19 +01:00
class cmCTest;
2009-10-04 10:30:41 +03:00
/** \class cmCTestBZR
* \brief Interaction with bzr command-line tool
*
*/
2016-07-09 11:21:54 +02:00
class cmCTestBZR : public cmCTestGlobalVC
2009-10-04 10:30:41 +03:00
{
public:
/** Construct with a CTest instance and update log stream. */
cmCTestBZR(cmCTest* ctest, std::ostream& log);
2018-01-26 17:06:56 +01:00
~cmCTestBZR() override;
2009-10-04 10:30:41 +03:00
private:
// Implement cmCTestVC internal API.
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
// URL of repository directory checked out in the working tree.
std::string URL;
std::string LoadInfo();
2018-01-26 17:06:56 +01:00
bool LoadModifications() override;
bool LoadRevisions() override;
2009-10-04 10:30:41 +03:00
// Parsing helper classes.
class InfoParser;
class LogParser;
2016-10-30 18:24:19 +01:00
class RevnoParser;
2009-10-04 10:30:41 +03:00
class StatusParser;
2016-10-30 18:24:19 +01:00
class UpdateParser;
2009-10-04 10:30:41 +03:00
friend class InfoParser;
friend class LogParser;
2016-10-30 18:24:19 +01:00
friend class RevnoParser;
2009-10-04 10:30:41 +03:00
friend class UpdateParser;
friend class StatusParser;
};