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

Issue 160294: Pass matching file list to the hook in gclient. (Closed)

Created:
11 years, 4 months ago by Paweł Hajdan Jr.
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, M-A Ruel
Visibility:
Public.

Description

Pass matching file list to the hook in gclient. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=22224

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -14 lines) Patch
M gclient.py View 1 6 chunks +14 lines, -14 lines 1 comment Download

Messages

Total messages: 9 (0 generated)
Paweł Hajdan Jr.
I got a confusing presubmit error :-/ ** Presubmit Messages ** 4 unit tests failed. ...
11 years, 4 months ago (2009-07-28 22:02:21 UTC) #1
M-A Ruel
lgtm but to run the test, just export PYTHONPATH=. and try again. Sorry about that, ...
11 years, 4 months ago (2009-07-28 23:39:29 UTC) #2
darin (slow to review)
LGTM
11 years, 4 months ago (2009-07-29 00:06:25 UTC) #3
Paweł Hajdan Jr.
Updated the change to not break the tree. gyp would break if passed the file ...
11 years, 4 months ago (2009-07-30 17:31:04 UTC) #4
Paweł Hajdan Jr.
ping
11 years, 4 months ago (2009-07-31 15:30:21 UTC) #5
M-A Ruel
lgtm but I'd like to see a test for that.
11 years, 4 months ago (2009-07-31 19:04:16 UTC) #6
Mark Mentovai
http://codereview.chromium.org/160294/diff/1002/6 File gclient.py (right): http://codereview.chromium.org/160294/diff/1002/6#newcode1236 Line 1236: command.remove('$matching_files') Don't you want to splice matching_file_list into ...
11 years, 4 months ago (2009-07-31 19:12:41 UTC) #7
Paweł Hajdan Jr.
It probably won't make much difference, because I plan to have $matching_files at the end ...
11 years, 4 months ago (2009-07-31 23:46:13 UTC) #8
Mark Mentovai
11 years, 4 months ago (2009-08-03 16:08:31 UTC) #9
Pawe=C5=82, please use this:

if '$matching_files' in command:
  splice_index =3D command.index('$matching_files')
  command[splice_index:splice_index + 1] =3D matching_file_list

For that matter, you could even replace the very first word ("if")
with "while" to handle the odd case where "$matching_files" appears
more than once.

Mark

On Fri, Jul 31, 2009 at 7:45 PM, Pawe=C5=82 Hajdan
Jr.<phajdan.jr@chromium.org> wrote:
> It probably won't make much difference, because I plan to have
> $matching_files at the end of command line.
> If there's easy and readable way to splice, I can do that.
>
> On Fri, Jul 31, 2009 at 12:12, <mark@chromium.org> wrote:
>>
>> http://codereview.chromium.org/160294/diff/1002/6
>> File gclient.py (right):
>>
>> http://codereview.chromium.org/160294/diff/1002/6#newcode1236
>> Line 1236: command.remove('$matching_files')
>> Don't you want to splice matching_file_list into the position where
>> $matching_files was found?
>>
>> http://codereview.chromium.org/160294

Powered by Google App Engine
This is Rietveld 408576698