1
/*============================================================================
2
CMake - Cross Platform Makefile Generator
3
Copyright 2000-2009 Kitware, Inc.
5
Distributed under the OSI-approved BSD License (the "License");
6
see accompanying file Copyright.txt for details.
8
This software is distributed WITHOUT ANY WARRANTY; without even the
9
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
See the License for more information.
11
============================================================================*/
15
#include "cmCTestVC.h"
18
* \brief Interaction with cvs command-line tool
21
class cmCTestCVS: public cmCTestVC
24
/** Construct with a CTest instance and update log stream. */
25
cmCTestCVS(cmCTest* ctest, std::ostream& log);
27
virtual ~cmCTestCVS();
30
// Implement cmCTestVC internal API.
31
virtual bool UpdateImpl();
32
virtual bool WriteXMLUpdates(std::ostream& xml);
34
// Update status for files in each directory.
35
class Directory: public std::map<cmStdString, PathStatus> {};
36
std::map<cmStdString, Directory> Dirs;
38
std::string ComputeBranchFlag(std::string const& dir);
39
void LoadRevisions(std::string const& file, const char* branchFlag,
40
std::vector<Revision>& revisions);
41
void WriteXMLDirectory(std::ostream& xml, std::string const& path,
42
Directory const& dir);
44
// Parsing helper classes.
47
friend class UpdateParser;
48
friend class LogParser;