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

Issue 2852032: git-cl-upload-hook: improved finding depot_tools algorithm... (Closed)

Created:
10 years, 5 months ago by zbehan
Modified:
9 years, 7 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews, M-A Ruel
Visibility:
Public.

Description

git-cl-upload-hook: improved finding depot_tools algorithm * also allow PATH entry to end in / (which is valid) * in case depot_tools cannot be located in PATH, search for them using which * added dependency on subprocess (new in python 2.4) M git-cl-upload-hook TEST=run the hook manually with: 1) PATH containing the depot_tools, depot_tools/ (success) 2) checkout of depot_tools into ~/x, and PATH containing that (success) 3) PATH not containing any copy of depot_tools (fail) 4) Several PATH entries containing gclient, not called depot_tools (success) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=51207

Patch Set 1 #

Total comments: 3

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 5

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -2 lines) Patch
M git-cl-upload-hook View 1 2 3 1 chunk +14 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
zbehan
10 years, 5 months ago (2010-06-29 02:05:09 UTC) #1
M-A Ruel
http://codereview.chromium.org/2852032/diff/1/2 File git-cl-upload-hook (right): http://codereview.chromium.org/2852032/diff/1/2#newcode20 git-cl-upload-hook:20: # if depot_tools dir is not called depot_tools, or ...
10 years, 5 months ago (2010-06-29 02:27:08 UTC) #2
zbehan
10 years, 5 months ago (2010-06-29 03:06:19 UTC) #3
zbehan
On 2010/06/29 02:27:08, Marc-Antoine Ruel wrote: > http://codereview.chromium.org/2852032/diff/1/2 > File git-cl-upload-hook (right): > > http://codereview.chromium.org/2852032/diff/1/2#newcode20 ...
10 years, 5 months ago (2010-06-29 03:11:37 UTC) #4
zbehan
On 2010/06/29 03:06:19, zbehan wrote: > Meh. Also, ignore the second diff, that shouldn't have ...
10 years, 5 months ago (2010-06-29 03:13:38 UTC) #5
zbehan
On 2010/06/29 02:27:08, Marc-Antoine Ruel wrote: > http://codereview.chromium.org/2852032/diff/1/2#newcode24 > git-cl-upload-hook:24: path = Popen(["sh", "-c", "which ...
10 years, 5 months ago (2010-06-29 03:23:43 UTC) #6
zbehan
10 years, 5 months ago (2010-06-29 03:32:02 UTC) #7
M-A Ruel
lgtm with nits http://codereview.chromium.org/2852032/diff/11001/12001 File git-cl-upload-hook (right): http://codereview.chromium.org/2852032/diff/11001/12001#newcode8 git-cl-upload-hook:8: from subprocess import Popen,PIPE from subprocess ...
10 years, 5 months ago (2010-06-29 19:53:55 UTC) #8
zbehan
On 2010/06/29 19:53:55, Marc-Antoine Ruel wrote: > lgtm with nits > > http://codereview.chromium.org/2852032/diff/11001/12001 > File ...
10 years, 5 months ago (2010-06-29 20:31:43 UTC) #9
M-A Ruel
10 years, 5 months ago (2010-06-29 20:37:23 UTC) #10
lgtm but you did a http checkout

Powered by Google App Engine
This is Rietveld 408576698