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

Side by Side Diff: git-crup

Issue 11709003: Another round of refactoring and optimizing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 7 years, 11 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 | « crup-runner.sh ('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
1 #!/bin/bash 1 #!/bin/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 # A convenience script to largely replicate the behavior of `gclient sync` in a 6 # A convenience script to largely replicate the behavior of `gclient sync` in a
7 # submodule-based checkout. Fetches latest commits for top-level solutions; 7 # submodule-based checkout. Fetches latest commits for top-level solutions;
8 # updates submodules; and runs post-sync hooks. 8 # updates submodules; and runs post-sync hooks.
9 9
10 # Auto-update depot_tools
11 if [ -z "$GIT_CRUP_REINVOKE" ]; then
12 update_depot_tools || exit 1
13 GIT_CRUP_REINVOKE=1 exec bash "$0" "$@"
14 fi
15
10 export GIT_MERGE_AUTOEDIT=0 16 export GIT_MERGE_AUTOEDIT=0
11 17
12 ECHO= 18 ECHO=
13 pull=pull 19 pull=pull
14 pull_args= 20 pull_args=
15 hooks=yes 21 hooks=yes
16 j=10 22 j=10
17 crup_runner="crup-runner.sh" 23 crup_runner="crup-runner.sh"
18 runhooks="git-runhooks" 24 runhooks="git-runhooks"
19 25
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 139
134 status=$? 140 status=$?
135 141
136 if [ "$hooks" = "yes" -a "$status" -eq 0 ]; then 142 if [ "$hooks" = "yes" -a "$status" -eq 0 ]; then
137 "$runhooks" 143 "$runhooks"
138 status=$? 144 status=$?
139 fi 145 fi
140 146
141 echo 147 echo
142 exit $status 148 exit $status
OLDNEW
« no previous file with comments | « crup-runner.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698