Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(626)

Side by Side Diff: update_depot_tools

Issue 2000913002: Add warnings to SVN update_depot_tools (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Better empty lines Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | update_depot_tools.bat » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env bash 1 #!/usr/bin/env bash
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # This script will try to sync the bootstrap directories and then defer control. 6 # This script will try to sync the bootstrap directories and then defer control.
7 7
8 if [ "$USER" == "root" ]; 8 if [ "$USER" == "root" ];
9 then 9 then
10 echo Running depot tools as root is sad. 10 echo Running depot tools as root is sad.
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 if [ "X$DEPOT_TOOLS_UPDATE" != "X0" -a -e "$base_dir/.git" ] 153 if [ "X$DEPOT_TOOLS_UPDATE" != "X0" -a -e "$base_dir/.git" ]
154 then 154 then
155 cd $base_dir 155 cd $base_dir
156 update_git_repo 156 update_git_repo
157 cd - > /dev/null 157 cd - > /dev/null
158 fi 158 fi
159 159
160 # We're on POSIX. We can now safely look for svn checkout. 160 # We're on POSIX. We can now safely look for svn checkout.
161 if [ "X$DEPOT_TOOLS_UPDATE" != "X0" -a -e "$base_dir/.svn" ] 161 if [ "X$DEPOT_TOOLS_UPDATE" != "X0" -a -e "$base_dir/.svn" ]
162 then 162 then
163 echo "========================"
164 echo "WARNING: You have an SVN checkout of depot_tools!"
165 echo
166 echo "depot_tools is migrating to Git on June 6, 2016. If you still have an"
167 echo "SVN checkout then, you will STOP RECEIVING UPDATES to depot_tools."
168 echo
169 echo "Before that date, please follow the instructions here[1] to get a Git"
170 echo "copy of depot_tools."
171 echo
172 echo "[1]: https://www.chromium.org/developers/how-tos/install-depot-tools"
173 echo "========================"
163 # Update the root directory to stay up-to-date with the latest depot_tools. 174 # Update the root directory to stay up-to-date with the latest depot_tools.
164 BEFORE_REVISION=$(get_svn_revision) 175 BEFORE_REVISION=$(get_svn_revision)
165 if echo $* | grep -e --force > /dev/null; then 176 if echo $* | grep -e --force > /dev/null; then
166 "$SVN" -q revert -R "$base_dir" 177 "$SVN" -q revert -R "$base_dir"
167 fi 178 fi
168 "$SVN" -q up "$base_dir" 179 "$SVN" -q up "$base_dir"
169 AFTER_REVISION=$(get_svn_revision) 180 AFTER_REVISION=$(get_svn_revision)
170 if [[ "$BEFORE_REVISION" != "$AFTER_REVISION" ]]; then 181 if [[ "$BEFORE_REVISION" != "$AFTER_REVISION" ]]; then
171 if [ -z "$DEPOT_TOOLS_HIDE_UPDATED_MESSAGE" ]; then 182 if [ -z "$DEPOT_TOOLS_HIDE_UPDATED_MESSAGE" ]; then
172 echo "Depot Tools has been updated to revision $AFTER_REVISION." 1>&2 183 echo "Depot Tools has been updated to revision $AFTER_REVISION." 1>&2
173 fi 184 fi
174 fi 185 fi
175 fi 186 fi
176 187
177 find "$base_dir" -iname "*.pyc" -exec rm -f {} \; 188 find "$base_dir" -iname "*.pyc" -exec rm -f {} \;
OLDNEW
« no previous file with comments | « no previous file | update_depot_tools.bat » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698