[Cmake-commits] CMake branch, next, updated. v2.8.7-3000-ga64ecf4

Brad King brad.king at kitware.com
Fri Mar 2 10:28:26 EST 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  a64ecf40c63720a3e196313c4ed55c1046f48aba (commit)
       via  9012be20c526445e0d2e2ca6878308bb88dba9cf (commit)
      from  2601a84ffeadfd6a3795a39d8c4f85969ea508c3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a64ecf40c63720a3e196313c4ed55c1046f48aba
commit a64ecf40c63720a3e196313c4ed55c1046f48aba
Merge: 2601a84 9012be2
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Fri Mar 2 10:28:17 2012 -0500
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Fri Mar 2 10:28:17 2012 -0500

    Merge topic 'remove-CheckSourceTree-cvs-support' into next
    
    9012be2 CheckSourceTree: Remove CVS checkout support (#13001)


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=9012be20c526445e0d2e2ca6878308bb88dba9cf
commit 9012be20c526445e0d2e2ca6878308bb88dba9cf
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Fri Mar 2 10:24:43 2012 -0500
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Fri Mar 2 10:24:43 2012 -0500

    CheckSourceTree: Remove CVS checkout support (#13001)
    
    We no longer support CVS checkouts from the Git repository.
    Drop the case from the CheckSourceTree test.  This will also
    prevent the test from running and failing when CVS is found
    but Git is not.

diff --git a/Tests/CMakeTests/CMakeLists.txt b/Tests/CMakeTests/CMakeLists.txt
index fc1426e..e473c42 100644
--- a/Tests/CMakeTests/CMakeLists.txt
+++ b/Tests/CMakeTests/CMakeLists.txt
@@ -55,14 +55,13 @@ AddCMakeTest(GetPrerequisites "${GetPrerequisites_PreArgs}")
 # suite. It detects if any changes have been made to the CMake source tree
 # by any previous configure, build or test steps.
 #
-if(do_cvs_tests OR GIT_EXECUTABLE)
+if(GIT_EXECUTABLE)
   string(REPLACE "\\" "/" ENV_HOME "$ENV{HOME}")
   set(CheckSourceTree_PreArgs
     "-DCMake_BINARY_DIR:PATH=${CMake_BINARY_DIR}"
     "-DCMake_SOURCE_DIR:PATH=${CMake_SOURCE_DIR}"
-    "-DCVS_EXECUTABLE:STRING=${CVS_EXECUTABLE}"
     "-DGIT_EXECUTABLE:STRING=${GIT_EXECUTABLE}"
     "-DHOME:STRING=${ENV_HOME}"
     )
   AddCMakeTest(CheckSourceTree "${CheckSourceTree_PreArgs}")
-endif(do_cvs_tests OR GIT_EXECUTABLE)
+endif()
diff --git a/Tests/CMakeTests/CheckSourceTreeTest.cmake.in b/Tests/CMakeTests/CheckSourceTreeTest.cmake.in
index 73f8b01..59b2890 100644
--- a/Tests/CMakeTests/CheckSourceTreeTest.cmake.in
+++ b/Tests/CMakeTests/CheckSourceTreeTest.cmake.in
@@ -5,7 +5,6 @@ message("CTEST_FULL_OUTPUT (Avoid ctest truncation of output)")
 message("")
 message("CMake_BINARY_DIR='${CMake_BINARY_DIR}'")
 message("CMake_SOURCE_DIR='${CMake_SOURCE_DIR}'")
-message("CVS_EXECUTABLE='${CVS_EXECUTABLE}'")
 message("GIT_EXECUTABLE='${GIT_EXECUTABLE}'")
 message("HOME='${HOME}'")
 message("ENV{DASHBOARD_TEST_FROM_CTEST}='$ENV{DASHBOARD_TEST_FROM_CTEST}'")
@@ -43,7 +42,7 @@ message("in_source_build='${in_source_build}'")
 message("")
 
 
-# If this does not appear to be a git or CVS checkout, just pass the test here
+# If this does not appear to be a git checkout, just pass the test here
 # and now. (Do not let the test fail if it is run in a tree *exported* from a
 # repository or unpacked from a .zip file source installer...)
 #
@@ -52,29 +51,13 @@ if(EXISTS "${CMake_SOURCE_DIR}/.git")
   set(is_git_checkout 1)
 endif()
 
-set(is_cvs_checkout 0)
-if(EXISTS "${CMake_SOURCE_DIR}/CVS/Root")
-  set(is_cvs_checkout 1)
-endif()
-
 message("is_git_checkout='${is_git_checkout}'")
-message("is_cvs_checkout='${is_cvs_checkout}'")
 message("")
 
-if(NOT is_cvs_checkout)
 if(NOT is_git_checkout)
-  message("source tree is neither git nor CVS checkout... test passes by early return...")
+  message("source tree is not a git checkout... test passes by early return...")
   return()
 endif()
-endif()
-
-if(is_cvs_checkout)
-if(is_git_checkout)
-  message("warning: source tree has both git *and* CVS file system bits???")
-  # should this condition be a FATAL_ERROR test failure...?
-endif()
-endif()
-
 
 # This test looks for the following types of changes in the source tree:
 #
@@ -83,51 +66,13 @@ set(conflicts 0)
 set(modifications 0)
 set(nonadditions 0)
 
-# ov == output variable... conditionally filled in by either cvs or git below:
+# ov == output variable... conditionally filled in by either git below:
 #
 set(cmd "")
 set(ov "")
 set(ev "")
 set(rv "")
 
-
-if(is_cvs_checkout AND CVS_EXECUTABLE)
-  # Check with "cvs -q -n up -dP" if there are any local modifications to the
-  # CMake source tree:
-  #
-  message("=============================================================================")
-  message("This is a cvs checkout, using cvs to verify source tree....")
-  message("")
-
-  execute_process(COMMAND ${CVS_EXECUTABLE} --version
-    WORKING_DIRECTORY ${CMake_SOURCE_DIR}
-    OUTPUT_VARIABLE version_output
-    OUTPUT_STRIP_TRAILING_WHITESPACE)
-  message("=== output of 'cvs --version' ===")
-  message("${version_output}")
-  message("=== end output ===")
-  message("")
-
-  file(READ "${CMake_SOURCE_DIR}/CVS/Root" contents)
-  message("=== content of CVS/Root ===")
-  message("${contents}")
-  message("=== end content ===")
-  message("")
-
-  file(READ "${CMake_SOURCE_DIR}/CVS/Repository" contents)
-  message("=== content of CVS/Repository ===")
-  message("${contents}")
-  message("=== end content ===")
-  message("")
-
-  message("Copy/paste this command to reproduce:")
-  message("cd \"${CMake_SOURCE_DIR}\" && \"${CVS_EXECUTABLE}\" -q -n up -dP")
-  message("")
-
-  set(cmd ${CVS_EXECUTABLE} -q -n up -dP)
-endif()
-
-
 # If no GIT_EXECUTABLE, see if we can figure out which git was used
 # for the ctest_update step on this dashboard...
 #
@@ -268,8 +213,8 @@ endif()
 
 
 if(cmd)
-  # Use the HOME value passed in to the script for calling cvs/git so it can
-  # find its .cvspass or user/global config settings...
+  # Use the HOME value passed in to the script for calling git so it can
+  # find its user/global config settings...
   #
   set(original_ENV_HOME "$ENV{HOME}")
   set(ENV{HOME} "${HOME}")
@@ -322,28 +267,6 @@ if(NOT ov STREQUAL "")
     endif()
 
     if(consider)
-      if(is_cvs_checkout)
-        if(line MATCHES "^A ")
-          message("   locally added file/directory detected...")
-          set(additions 1)
-        endif()
-
-        if(line MATCHES "^C ")
-          message("   conflict detected...")
-          set(conflicts 1)
-        endif()
-
-        if(line MATCHES "^M ")
-          message("   locally modified file detected...")
-          set(modifications 1)
-        endif()
-
-        if(line MATCHES "^\\? ")
-          message("   locally non-added file/directory detected...")
-          set(nonadditions 1)
-        endif()
-      endif()
-
       if(is_git_checkout)
         if(line MATCHES "^#[ \t]*modified:")
           message("   locally modified file detected...")

-----------------------------------------------------------------------

Summary of changes:
 Tests/CMakeTests/CMakeLists.txt               |    5 +-
 Tests/CMakeTests/CheckSourceTreeTest.cmake.in |   87 ++-----------------------
 2 files changed, 7 insertions(+), 85 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list