diff options
author | Brad King <brad.king@kitware.com> | 2009-02-24 17:52:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-02-24 17:52:36 (GMT) |
commit | de3dedb4ea68f96deda8f4f1c97ab4f134b89f82 (patch) | |
tree | 645508549bd1fa19dacdebb8e4bf64c2839974ed /Source/CTest/cmCTestSVN.h | |
parent | d76bc78a1247d0ac5d151a510b8d6ba231daa043 (diff) | |
download | CMake-de3dedb4ea68f96deda8f4f1c97ab4f134b89f82.zip CMake-de3dedb4ea68f96deda8f4f1c97ab4f134b89f82.tar.gz CMake-de3dedb4ea68f96deda8f4f1c97ab4f134b89f82.tar.bz2 |
ENH: Factor out VCS work tree revision checks
This moves checks of the work tree revision before and after update from
cmCTestUpdateHandler::ProcessHandler into the cmCTestVC hierarchy.
Diffstat (limited to 'Source/CTest/cmCTestSVN.h')
-rw-r--r-- | Source/CTest/cmCTestSVN.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestSVN.h b/Source/CTest/cmCTestSVN.h index c6723af..3df4e2c 100644 --- a/Source/CTest/cmCTestSVN.h +++ b/Source/CTest/cmCTestSVN.h @@ -31,9 +31,23 @@ public: virtual ~cmCTestSVN(); + int GetOldRevision() { return atoi(this->OldRevision.c_str()); } + int GetNewRevision() { return atoi(this->NewRevision.c_str()); } private: // Implement cmCTestVC internal API. virtual void CleanupImpl(); + virtual void NoteOldRevision(); + virtual void NoteNewRevision(); + + // Old and new repository revisions. + std::string OldRevision; + std::string NewRevision; + + std::string LoadInfo(); + + // Parsing helper classes. + class InfoParser; + friend class InfoParser; }; #endif |