mirror of
https://github.com/reactos/CMake.git
synced 2024-12-01 15:30:40 +00:00
9c17cbeb44
This creates cmCTestGIT to drive CTest Update handling on git-based work trees. Currently we always update to the head of the remote tracking branch (git pull), so the nightly start time is ignored for Nightly builds. A later change will address this. See issue #6994.
53 lines
1.3 KiB
C++
53 lines
1.3 KiB
C++
/*=========================================================================
|
|
|
|
Program: CMake - Cross-Platform Makefile Generator
|
|
Module: $RCSfile$
|
|
Language: C++
|
|
Date: $Date$
|
|
Version: $Revision$
|
|
|
|
Copyright (c) 2002 Kitware, Inc. All rights reserved.
|
|
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
|
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even
|
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
PURPOSE. See the above copyright notices for more information.
|
|
|
|
=========================================================================*/
|
|
#ifndef cmCTestGIT_h
|
|
#define cmCTestGIT_h
|
|
|
|
#include "cmCTestGlobalVC.h"
|
|
|
|
/** \class cmCTestGIT
|
|
* \brief Interaction with git command-line tool
|
|
*
|
|
*/
|
|
class cmCTestGIT: public cmCTestGlobalVC
|
|
{
|
|
public:
|
|
/** Construct with a CTest instance and update log stream. */
|
|
cmCTestGIT(cmCTest* ctest, std::ostream& log);
|
|
|
|
virtual ~cmCTestGIT();
|
|
|
|
private:
|
|
std::string GetWorkingRevision();
|
|
virtual void NoteOldRevision();
|
|
virtual void NoteNewRevision();
|
|
virtual bool UpdateImpl();
|
|
|
|
void LoadRevisions();
|
|
void LoadModifications();
|
|
|
|
// Parsing helper classes.
|
|
class OneLineParser;
|
|
class DiffParser;
|
|
class CommitParser;
|
|
friend class OneLineParser;
|
|
friend class DiffParser;
|
|
friend class CommitParser;
|
|
};
|
|
|
|
#endif
|