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

Side by Side Diff: update_depot_tools.bat

Issue 9751009: Fix git depot_tools update flow. (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools
Patch Set: make bootstrap/gclient.bat wrap the update Created 8 years, 9 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
« bootstrap/gclient.bat ('K') | « update_depot_tools ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 @echo off
2 :: Copyright (c) 2010 The Chromium Authors. All rights reserved.
M-A Ruel 2012/03/21 01:57:09 2012
3 :: Use of this source code is governed by a BSD-style license that can be
4 :: found in the LICENSE file.
5
6 :: This batch file will try to sync the root directory.
7
8 :: This is required with cygwin only.
M-A Ruel 2012/03/21 01:57:09 Actually, cygwin should not get there. :/
gab 2012/03/21 13:31:46 This is coming straight from the old script. I thi
M-A Ruel 2012/03/21 14:32:50 Yeah and that's wrong. Remove lines 8 and 10.
gab 2012/03/21 14:37:52 Ok, done.
9 setlocal
10 PATH=%~dp0;%PATH%
11
12 :: Will download svn and python.
13 :: If you don't want to install the depot_tools version of these tools, remove
14 :: the 'force' option on the next command. The tools will be installed only if
15 :: not already in the PATH environment variable.
16 call "%~dp0bootstrap\win\win_tools.bat" force
17 if errorlevel 1 goto :EOF
18
19 :: Shall skip automatic update?
20 IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :EOF
21
22 :: We need either .\.svn\. or .\.git\. to be able to sync.
23 IF EXIST "%~dp0.svn\." GOTO :SVN_UPDATE
24 IF EXIST "%~dp0.git\." GOTO :GIT_UPDATE
25 echo Error updating depot_tools, no revision tool found.
26 goto :EOF
27
28
29 :SVN_UPDATE
30 call svn up -q "%~dp0"
31 goto :EOF
32
33
34 :GIT_UPDATE
35 cd "%~dp0"
36 call git svn rebase -q -q
37 goto :EOF
OLDNEW
« bootstrap/gclient.bat ('K') | « update_depot_tools ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698