[Cmake-commits] CMake branch, dashboard, updated. 849820219e84e251ad99121f738456f3743ba4fa

Brad King brad.king at kitware.com
Wed Jan 18 09:15: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, dashboard has been updated
       via  849820219e84e251ad99121f738456f3743ba4fa (commit)
       via  fe760baa0af5287d8a27552fced1a646a042f1ed (commit)
      from  8daf9edd8a0a6390ef0eea0bbf0a7b12bf26ce7c (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=849820219e84e251ad99121f738456f3743ba4fa
commit 849820219e84e251ad99121f738456f3743ba4fa
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Wed Jan 18 09:12:00 2012 -0500
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Wed Jan 18 09:12:00 2012 -0500

    cmake_common: Remove source tree when .git is corrupted
    
    Some dashboard builds run on scratch disks that arbitrarily remove files
    that have not been accessed in a while.  Since Git uses O_NOATIME for
    repository objects the .git repository files may disappear thus
    corrupting the repository.  When this happens even "git reset --hard"
    will fail, so wipe out the source tree to get a fresh clone.

diff --git a/cmake_common.cmake b/cmake_common.cmake
index f3a4cb3..2d7091a 100644
--- a/cmake_common.cmake
+++ b/cmake_common.cmake
@@ -193,6 +193,17 @@ if(EXISTS ${CTEST_SOURCE_DIRECTORY})
   if(CTEST_GIT_COMMAND)
     if(NOT EXISTS "${CTEST_SOURCE_DIRECTORY}/.git")
       set(vcs_refresh "because it is not managed by git.")
+    else()
+      execute_process(
+        COMMAND ${CTEST_GIT_COMMAND} reset --hard
+        WORKING_DIRECTORY "${CTEST_SOURCE_DIRECTORY}"
+        OUTPUT_VARIABLE output
+        ERROR_VARIABLE output
+        RESULT_VARIABLE failed
+        )
+      if(failed)
+        set(vcs_refresh "because its .git may be corrupted.")
+      endif()
     endif()
   endif()
   if(vcs_refresh AND "${CTEST_SOURCE_DIRECTORY}" MATCHES "/CMake[^/]*")

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=fe760baa0af5287d8a27552fced1a646a042f1ed
commit fe760baa0af5287d8a27552fced1a646a042f1ed
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Wed Jan 18 09:08:43 2012 -0500
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Wed Jan 18 09:08:43 2012 -0500

    cmake_common: Add copyright and license notice
    
    Use the same OSI-approved 3-clause BSD license that covers CMake.

diff --git a/cmake_common.cmake b/cmake_common.cmake
index d1ca208..f3a4cb3 100644
--- a/cmake_common.cmake
+++ b/cmake_common.cmake
@@ -55,6 +55,38 @@
 #   set(ENV{FC}  /path/to/fc)   # Fortran compiler (optional)
 #   set(ENV{LD_LIBRARY_PATH} /path/to/vendor/lib) # (if necessary)
 
+#=============================================================================
+# Copyright 2010-2012 Kitware, Inc.
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# * Redistributions of source code must retain the above copyright
+#   notice, this list of conditions and the following disclaimer.
+#
+# * Redistributions in binary form must reproduce the above copyright
+#   notice, this list of conditions and the following disclaimer in the
+#   documentation and/or other materials provided with the distribution.
+#
+# * Neither the name of Kitware, Inc. nor the names of its contributors
+#   may be used to endorse or promote products derived from this
+#   software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#=============================================================================
+
 cmake_minimum_required(VERSION 2.6.3 FATAL_ERROR)
 
 set(CTEST_PROJECT_NAME CMake)

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

Summary of changes:
 cmake_common.cmake |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 43 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list