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

Issue 9751009: Fix git depot_tools update flow. (Closed)

Created:
8 years, 9 months ago by gab
Modified:
8 years, 8 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews, Dirk Pranke
Visibility:
Public.

Description

Fix git depot_tools update flow. In Windows (already worked correctly in posix): gclient wouldn't correctly update depot_tools when called. Refactored away the bootstrap depot_tools update flow which only still existed in Windows. Patch contributed by gab@chromium.org R=maruel@chromium.org BUG= TEST=Running `gclient sync` from src/ and see depot_tools being correctly updated under a git depot_tools checkout. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=132191

Patch Set 1 #

Total comments: 8

Patch Set 2 : remove bootstrap #

Total comments: 1

Patch Set 3 : fix posix update comment #

Total comments: 2

Patch Set 4 : make bootstrap/gclient.bat wrap the update #

Total comments: 6

Patch Set 5 : fix dates #

Patch Set 6 : remove cygwin PATH fix #

Total comments: 3

Patch Set 7 : add /d #

Total comments: 2

Patch Set 8 : change / side in README #

Patch Set 9 : add . to dp0 #

Total comments: 2

Patch Set 10 : fix to unix endlines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -89 lines) Patch
M README View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
D bootstrap/gclient.bat View 1 2 3 4 5 6 7 8 9 1 chunk +22 lines, -10 lines 0 comments Download
D bootstrap/gclient.sh View 1 1 chunk +0 lines, -17 lines 0 comments Download
M bootstrap/update_depot_tools.bat View 1 1 chunk +0 lines, -15 lines 0 comments Download
M gclient.bat View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -43 lines 0 comments Download
M update_depot_tools View 1 2 1 chunk +1 line, -2 lines 0 comments Download
A update_depot_tools.bat View 1 2 3 4 5 6 7 8 9 1 chunk +35 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
gab
PTAL, thanks. https://chromiumcodereview.appspot.com/9751009/diff/1/gclient.bat File gclient.bat (right): https://chromiumcodereview.appspot.com/9751009/diff/1/gclient.bat#newcode47 gclient.bat:47: call git svn rebase -q -q I ...
8 years, 9 months ago (2012-03-20 14:52:18 UTC) #1
M-A Ruel
https://chromiumcodereview.appspot.com/9751009/diff/1/.gitignore File .gitignore (right): https://chromiumcodereview.appspot.com/9751009/diff/1/.gitignore#newcode1 .gitignore:1: .gitconfig Why would this file be created? https://chromiumcodereview.appspot.com/9751009/diff/1/.gitignore#newcode21 .gitignore:21: ...
8 years, 9 months ago (2012-03-20 15:19:13 UTC) #2
gab
Removed the bootstrap completely, only the Windows update flow was still using it. The Windows ...
8 years, 9 months ago (2012-03-20 20:10:52 UTC) #3
M-A Ruel
On 2012/03/20 20:10:52, gab wrote: > Removed the bootstrap completely, only the Windows update flow ...
8 years, 9 months ago (2012-03-20 20:31:31 UTC) #4
gab
Added logic to bootstrap\gclient.bat to "wrap" the update. So that it will silently switch to ...
8 years, 9 months ago (2012-03-20 21:10:15 UTC) #5
M-A Ruel
looks good, will have to think a bit about it tomorrow just to make sure ...
8 years, 9 months ago (2012-03-21 01:57:09 UTC) #6
gab
Fixed dates. Is there a try server for this kind of depot_tools update? https://chromiumcodereview.appspot.com/9751009/diff/10002/update_depot_tools.bat File ...
8 years, 9 months ago (2012-03-21 13:31:46 UTC) #7
M-A Ruel
https://chromiumcodereview.appspot.com/9751009/diff/10002/update_depot_tools.bat File update_depot_tools.bat (right): https://chromiumcodereview.appspot.com/9751009/diff/10002/update_depot_tools.bat#newcode8 update_depot_tools.bat:8: :: This is required with cygwin only. On 2012/03/21 ...
8 years, 9 months ago (2012-03-21 14:32:50 UTC) #8
gab
https://chromiumcodereview.appspot.com/9751009/diff/10002/update_depot_tools.bat File update_depot_tools.bat (right): https://chromiumcodereview.appspot.com/9751009/diff/10002/update_depot_tools.bat#newcode8 update_depot_tools.bat:8: :: This is required with cygwin only. On 2012/03/21 ...
8 years, 9 months ago (2012-03-21 14:37:52 UTC) #9
M-A Ruel
https://chromiumcodereview.appspot.com/9751009/diff/18008/README File README (right): https://chromiumcodereview.appspot.com/9751009/diff/18008/README#newcode36 README:36: To update this distribution manually, run .\update_depot_tools.bat on Windows, ...
8 years, 9 months ago (2012-03-21 15:05:46 UTC) #10
gab
https://chromiumcodereview.appspot.com/9751009/diff/18008/update_depot_tools.bat File update_depot_tools.bat (right): https://chromiumcodereview.appspot.com/9751009/diff/18008/update_depot_tools.bat#newcode33 update_depot_tools.bat:33: cd "%~dp0" On 2012/03/21 15:05:46, Marc-Antoine Ruel wrote: > ...
8 years, 9 months ago (2012-03-21 16:34:50 UTC) #11
M-A Ruel
lgtm with one comment nit https://chromiumcodereview.appspot.com/9751009/diff/13005/README File README (right): https://chromiumcodereview.appspot.com/9751009/diff/13005/README#newcode37 README:37: or .\update_depot_tools on Linux ...
8 years, 9 months ago (2012-03-21 19:02:00 UTC) #12
gab
How should we go about committing this? I tested it on my Windows machine, but ...
8 years, 9 months ago (2012-03-21 19:08:34 UTC) #13
M-A Ruel
On 2012/03/21 19:08:34, gab wrote: > How should we go about committing this? I tested ...
8 years, 9 months ago (2012-03-21 19:32:48 UTC) #14
gab
Fully tested using an independent svn server as you suggested. The only nit was the ...
8 years, 9 months ago (2012-03-22 16:43:47 UTC) #15
M-A Ruel
lgtm anyway https://chromiumcodereview.appspot.com/9751009/diff/23001/update_depot_tools.bat File update_depot_tools.bat (right): https://chromiumcodereview.appspot.com/9751009/diff/23001/update_depot_tools.bat#newcode33 update_depot_tools.bat:33: cd /d "%~dp0." Interesting. Maybe the quotes ...
8 years, 9 months ago (2012-03-22 17:29:40 UTC) #16
gab
https://chromiumcodereview.appspot.com/9751009/diff/23001/update_depot_tools.bat File update_depot_tools.bat (right): https://chromiumcodereview.appspot.com/9751009/diff/23001/update_depot_tools.bat#newcode33 update_depot_tools.bat:33: cd /d "%~dp0." On 2012/03/22 17:29:40, Marc-Antoine Ruel wrote: ...
8 years, 9 months ago (2012-03-22 17:46:48 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/9751009/23001
8 years, 9 months ago (2012-03-22 17:47:01 UTC) #18
commit-bot: I haz the power
Can't apply patch for file depot_tools/bootstrap/gclient.bat. While running patch -p1 --forward --force; patching file depot_tools/bootstrap/gclient.bat ...
8 years, 9 months ago (2012-03-22 17:47:04 UTC) #19
gab
On 2012/03/22 17:47:04, I haz the power (commit-bot) wrote: > Can't apply patch for file ...
8 years, 9 months ago (2012-03-22 17:49:14 UTC) #20
M-A Ruel
On 2012/03/22 17:49:14, gab wrote: > On 2012/03/22 17:47:04, I haz the power (commit-bot) wrote: ...
8 years, 9 months ago (2012-03-22 17:53:52 UTC) #21
gab
On 2012/03/22 17:53:52, Marc-Antoine Ruel wrote: > On 2012/03/22 17:49:14, gab wrote: > > On ...
8 years, 9 months ago (2012-03-27 14:51:56 UTC) #22
M-A Ruel
On 2012/03/27 14:51:56, gab wrote: > On 2012/03/22 17:53:52, Marc-Antoine Ruel wrote: > > The ...
8 years, 9 months ago (2012-03-27 14:53:10 UTC) #23
gab
Ping. On Tue, Mar 27, 2012 at 10:53 AM, <maruel@chromium.org> wrote: > On 2012/03/27 14:51:56, ...
8 years, 8 months ago (2012-04-05 14:37:47 UTC) #24
gab
Ping :)
8 years, 8 months ago (2012-04-13 14:52:44 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/9751009/33001
8 years, 8 months ago (2012-04-13 15:24:02 UTC) #26
commit-bot: I haz the power
8 years, 8 months ago (2012-04-13 15:24:05 UTC) #27
Can't apply patch for file depot_tools/bootstrap/gclient.bat.
While running patch -p1 --forward --force;
patching file depot_tools/bootstrap/gclient.bat
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file
depot_tools/bootstrap/gclient.bat.rej

Powered by Google App Engine
This is Rietveld 408576698