annotate get_source.sh @ 613:8dd61906da5f

8007625: race with nested repos in /common/bin/hgforest.sh Reviewed-by: dholmes, ohair, ohrstrom
author chegar
date Wed, 06 Feb 2013 11:36:19 +0000
parents 8e36a0fabf58
children
rev   line source
ohair@274 1 #!/bin/sh
ohair@274 2
ohair@274 3 #
ohair@434 4 # Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
ohair@274 5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ohair@274 6 #
ohair@274 7 # This code is free software; you can redistribute it and/or modify it
ohair@274 8 # under the terms of the GNU General Public License version 2 only, as
ohair@274 9 # published by the Free Software Foundation. Oracle designates this
ohair@274 10 # particular file as subject to the "Classpath" exception as provided
ohair@274 11 # by Oracle in the LICENSE file that accompanied this code.
ohair@274 12 #
ohair@274 13 # This code is distributed in the hope that it will be useful, but WITHOUT
ohair@274 14 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ohair@274 15 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
ohair@274 16 # version 2 for more details (a copy is included in the LICENSE file that
ohair@274 17 # accompanied this code).
ohair@274 18 #
ohair@274 19 # You should have received a copy of the GNU General Public License version
ohair@274 20 # 2 along with this work; if not, write to the Free Software Foundation,
ohair@274 21 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ohair@274 22 #
ohair@274 23 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@274 24 # or visit www.oracle.com if you need additional information or have any
ohair@274 25 # questions.
ohair@274 26 #
ohair@274 27
ohair@274 28 # Get clones of all nested repositories
chegar@613 29 sh ./common/bin/hgforest.sh clone "$@" || exit 1
ohair@274 30
ohair@274 31 # Update all existing repositories to the latest sources
ohrstrom@536 32 sh ./common/bin/hgforest.sh pull -u
ohair@274 33