summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestUpdateHandler.cxx
Commit message (Collapse)AuthorAgeFilesLines
* ctest_update: Report failure in Update.xmlBrad King2010-04-271-0/+1
| | | | | | Report in <UpdateReturnStatus> when the update command line returns non-zero. Otherwise the failure may be silently ignored since the error was previously recorded only in the local log file.
* Use literal quotes in Update.xml UpdateCommandBrad King2009-12-181-1/+2
| | | | | | Previously we escaped quotes in <UpdateCommand>...</UpdateCommand> values using '&quot;'. This is not necessary because the value is in xml CDATA and not an xml attribute.
* CTest: Move initial checkout to ctest_start()Brad King2009-11-241-35/+0
| | | | | | | | | | | | | | | | | | | | In CTest command-driven script mode we support starting without a source tree. Previously the ctest_start() command would do some initialization but could not do anything that required CTestConfig.cmake from the input source tree. Later, ctest_update() would run CTEST_CHECKOUT_COMMAND to create the source tree, and then re-initialize everything. This delayed-initialization approach led to many complicated cases of which only some worked. For example, the second initialization only worked correctly in Nightly mode and simply failed for Experimental and Continuous builds. A simpler solution is to run CTEST_CHECKOUT_COMMAND during ctest_start() and then have a single initialization path. In principle this change in behavior could break scripts that set the checkout command after ctest_start() but before ctest_update(). However, the convention we've always followed has been to set all variables before ctest_start(). See issue #9450.
* Convert CMake to OSI-approved BSD LicenseBrad King2009-09-281-14/+9
| | | | | | | This converts the CMake license to a pure 3-clause OSI-approved BSD License. We drop the previous license clause requiring modified versions to be plainly marked. We also update the CMake copyright to cover the full development time range.
* ENH: Teach CTest to handle Mercurial repositoriesBrad King2009-07-101-1/+19
| | | | | | | | | | | This creates cmCTestHG to drive CTest Update handling on hg-based work trees. Currently we always update to the head of the remote tracking branch (hg pull), so the nightly start time is ignored for Nightly builds. A later change will address this. See issue #7879. Patch from Emmanuel Christophe. I modified the patch slightly for code style, to finish up some parsing details, and to fix the test.
* ENH: Teach CTest to handle Bazaar repositoriesBrad King2009-05-141-0/+18
| | | | | | | | This creates cmCTestBZR to drive CTest Update handling on bzr-based work trees. Currently we always update to the head of the remote tracking branch (bzr pull), so the nightly start time is ignored for Nightly builds. A later change will address this. Patch from Tom Vercauteren. See issue #6857.
* ENH: Teach CTest to handle git repositoriesBrad King2009-04-221-1/+19
| | | | | | | 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.
* BUG: Fix return value of ctest_updateBrad King2009-03-201-2/+3
| | | | | | | The CTest version control refactoring broke the value returned for the ctest_update command's RETURN_VALUE argument. The value is supposed to be the number of files updated, but the refactoring accidentally made it the number of locally modified files after the update.
* ENH: Refactor initial checkout into cmCTestVCBrad King2009-02-261-40/+6
| | | | | | | This adds cmCTestVC::InitialCheckout and uses it in cmCTestUpdateHandler to run the initial checkout command. The new implementation logs the command in the update log consistently with the rest of the new update implementation.
* ENH: Rewrite CTest Update implementationBrad King2009-02-251-637/+20
| | | | | | | | | | | | | | | This adds a new VCS update implementation to the cmCTestVC hierarchy and removes it from cmCTestUpdateHandler. The new implementation has the following advantages: - Factorized implementation instead of monolithic function - Logs vcs tool output as it is parsed (less memory, inline messages) - Uses one global svn log instead of one log per file - Reports changes on cvs branches (instead of latest trunk change) - Generates simpler Update.xml (only one Directory element per dir) Shared components of the new implementation appear in cmCTestVC and may be re-used by subclasses for other VCS tools in the future.
* ENH: Factor out VCS work tree revision checksBrad King2009-02-241-83/+11
| | | | | This moves checks of the work tree revision before and after update from cmCTestUpdateHandler::ProcessHandler into the cmCTestVC hierarchy.
* ENH: Factor out nightly start time computationBrad King2009-02-241-12/+1
| | | | | Move generation of the nightly start time string from cmCTestUpdateHandler::ProcessHandler into cmCTestVC.
* ENH: Factor out svn work tree cleanupBrad King2009-02-241-42/+3
| | | | | This removes work tree cleanup from cmCTestUpdateHandler and adds an interface for it in cmCTestVC with an implementation in cmCTestSVN.
* ENH: Add cmCTestCVS and cmCTestSVNBrad King2009-02-241-0/+17
| | | | | These cmCTestVC subclasses will implement interaction with CVS and SVN tools.
* ENH: Factor out VCS tool detectionBrad King2009-02-241-64/+93
| | | | | | | In cmCTestUpdateHandler, this factors out version control tool detection from the monolithic cmCTestUpdateHandler::ProcessHandler to separate methods. This also places priority on detection of the tool managing the source tree since using any other tool will cause errors.
* ENH: Factor out initial checkout methodBrad King2009-02-241-58/+65
| | | | | | This moves the initial checkout code from the monolithic cmCTestUpdateHandler::ProcessHandler to a separate method cmCTestUpdateHandler::InitialCheckout.
* ENH: Refactor quoting of VCS tool commandBrad King2009-02-231-11/+9
| | | | | | Previously we pre-quoted the command line tool path. This avoids it by quoting the command everywhere it is used, thus preserving access to the original, unquoted command.
* ENH: Remove generation of unused Update.xml partsBrad King2009-02-171-68/+7
| | | | | | | | | | This removes generation of some Update.xml content that is not used by any Dart1, Dart2, or CDash servers: - Revisions elements - Directory attribute of File elements - File elements within Author elements The content was generated only because the original Dart1 Tcl client generated it, but the content was never used.
* BUG: Fix svn update logic for modified filesBrad King2009-02-161-0/+4
| | | | | | | | | The main svn update parsing loop in cmCTestUpdateHandler previously had a logic error because the variable 'res' was not reset for each iteration. For a locally modified file it would report the update info for the previous non-modified file, or nothing if there was no previous file. This fixes the logic by setting variable 'res' in both control paths for each iteration. See issue #8168.
* STYLE: Fix spelling in cmCTestUpdateHandlerBrad King2009-02-161-9/+9
| | | | | | | This renames the variable 'numModiefied' to 'numModified' to fix its spelling. It also renames 'modifiedOrConflict' to 'notLocallyModified' to describe its purpose (rather than the opposite of its purpose). See issue #8168.
* ENH: Create cmXMLSafe to help escapes in XMLBrad King2009-02-051-19/+20
| | | | | | | This class provides easy syntax to efficiently insert blocks of data into XML documents with proper escapes. It replaces the old cmCTest::MakeXMLSafe and cmSystemTools::MakeXMLSafe methods which allocated extra memory instead of directly streaming the data.
* ENH: Divide CTest file submission list by partBrad King2009-01-121-1/+1
| | | | | | This splits the list of files for CTest to submit into those belonging to each part. The set is recombined just before submission. Later this will allow piecewise submissions.
* BUG: Manage LC_MESSAGES with an objectBrad King2009-01-061-25/+44
| | | | | | | This moves management of the LC_MESSAGES environment variable into an automatic variable. Previously if an error occurred the original environment value was not restored. This makes the fix to issue #5936 more robust.
* STYLE: Remove trailing whitespaceBrad King2009-01-061-3/+3
|
* BUG: use LC_MESSAGES = C instead of en_ENBill Hoffman2008-10-191-4/+4
|
* BUG: Fix recognition of files deleted from CVSBrad King2008-10-181-1/+8
| | | | | | | | | | | | The output of "cvs update" contains a line such as one of cvs update: `foo.txt' is no longer in the repository cvs update: foo.txt is no longer in the repository cvs update: warning: foo.txt is not (any longer) pertinent when file "foo.txt" has been removed in the version to which the update occurs. Previously only the first case would be recognized. This fixes the regular expression to match all these cases.
* ENH: play it safe and restore the value of LC_MESSAGESBill Hoffman2008-10-101-1/+17
|
* ENH: make sure LC_MESSAGES is en_EN so that we can parse the output of svn ↵Bill Hoffman2008-10-101-0/+8
| | | | and cvs
* BUG: undo fix for 7292 because a switched file should show up as an odd ↵Bill Hoffman2008-10-011-1/+1
| | | | thing on the dashbaord
* BUG: fix for bug 7292, svn parsing flagged errors or conflicts for switched ↵Bill Hoffman2008-09-091-1/+1
| | | | or locked files
* STYLE: line lengthBill Hoffman2008-01-311-1/+2
|
* ENH: remove warningsBill Hoffman2008-01-301-1/+1
|
* ENH: enhancements for cdash, include system information and better time entriesBill Hoffman2008-01-301-0/+4
|
* ENH: fatal error if cvs update failsBill Hoffman2007-08-031-1/+9
|
* STYLE: Fix typoAndy Cedilnik2006-10-261-1/+1
|
* BUG: Replace some errors with warningsAndy Cedilnik2006-10-131-2/+2
|
* ENH: Add svn cleanup before running svnAndy Cedilnik2006-03-151-6/+47
|
* STYLE: Fix some style issuesAndy Cedilnik2006-03-101-153/+165
|
* STYLE: Fix some style issuesAndy Cedilnik2006-03-091-79/+170
|
* ENH: add extra thing for svn X status outputBill Hoffman2006-01-271-0/+4
|
* BUG: Fix the problem with update.xml.tmp not being coppiedAndy Cedilnik2005-12-131-5/+0
|
* ENH: More outputAndy Cedilnik2005-10-191-1/+1
|
* ENH: Better handling of removed files and remove warningAndy Cedilnik2005-07-221-7/+2
|
* ENH: Add support for detecting files that were removedAndy Cedilnik2005-07-211-0/+19
|
* ENH: Add default update optionsAndy Cedilnik2005-07-111-0/+4
|
* BUG: Remove warning when using CVSAndy Cedilnik2005-07-111-8/+8
|
* ENH: Several improvements with the way things are handled. Also, support ↵Andy Cedilnik2005-06-231-2/+3
| | | | multiple submited files
* ENH: Add superclass for all commands and handlers. Improve handlers to have ↵Andy Cedilnik2005-06-171-4/+51
| | | | initialization code, and start initializing ctest when start is invoked
* ENH: Several improvements to CTest:Andy Cedilnik2005-06-161-11/+50
| | | | | | | | | 1. Support for showing line numbers when debugging ctest --show-line-numbers 2. Modify the ctest initialization code, so that it can be delayed 3. Handlers now have corresponding command if they were invoked from the command (so far only update actually use that) 4. Start command is simplified and the functionality is moved to CTest 5. Update can perform initial checkout if CTEST_CHECKOUT_COMMAND is set 6. Add test that checks out kwsys and perform tests on the fresh checkout
* ENH: Separate standard output and standard error for problematic commandsAndy Cedilnik2005-06-141-15/+32
|