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

Issue 17742004: Add custom hooks. (Closed)

Created:
7 years, 6 months ago by Peter Mayo
Modified:
7 years, 5 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org
Visibility:
Public.

Description

Add custom hooks. Sometimes we wish to pull in a complicated dependency but want to suppress or replace one or more of the hooks rules. Say for example we want to use a different way of generating the projects, or have a different set of landmine expectations. Here we add a custom_hooks section mirroring custom_deps to allow us to override sections we have identified in the DEPS file. To do so, we add an optional name to the elements of the hooks list, and overwrite those whose name matches. Conventions between included DEPS and the .gclient as to the meanings of the name are equivalent to the meaning of the customized deps, and so do not benefit from further structure or definition. BUG=None TEST=local unit test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=210573

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -16 lines) Patch
M gclient.py View 1 10 chunks +35 lines, -10 lines 0 comments Download
M tests/gclient_test.py View 1 2 3 chunks +56 lines, -6 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Peter Mayo
7 years, 6 months ago (2013-06-26 01:43:21 UTC) #1
Peter Mayo
Switching from M-A while he's OOO.
7 years, 6 months ago (2013-06-26 22:22:04 UTC) #2
szager1
https://codereview.chromium.org/17742004/diff/1/gclient.py File gclient.py (right): https://codereview.chromium.org/17742004/diff/1/gclient.py#newcode54 gclient.py:54: "action": ["gyp_chromium"]}, I'd rather the action was the same ...
7 years, 5 months ago (2013-06-28 15:42:34 UTC) #3
Peter Mayo
https://codereview.chromium.org/17742004/diff/1/gclient.py File gclient.py (right): https://codereview.chromium.org/17742004/diff/1/gclient.py#newcode548 gclient.py:548: hook_names_to_suppress = [c.get('name', '') for c in self.custom_hooks] On ...
7 years, 5 months ago (2013-06-28 17:04:34 UTC) #4
Peter Mayo
https://codereview.chromium.org/17742004/diff/1/gclient.py File gclient.py (right): https://codereview.chromium.org/17742004/diff/1/gclient.py#newcode54 gclient.py:54: "action": ["gyp_chromium"]}, On 2013/06/28 15:42:34, szager1 wrote: > I'd ...
7 years, 5 months ago (2013-06-28 17:19:32 UTC) #5
Peter Mayo
Incrementals finished - just waiting on agreement or continued discussion of the meaning of specifying ...
7 years, 5 months ago (2013-06-28 18:00:12 UTC) #6
Peter Mayo
ping
7 years, 5 months ago (2013-07-03 01:31:06 UTC) #7
Peter Mayo
I guess szager1 is too busy for this.
7 years, 5 months ago (2013-07-04 13:18:05 UTC) #8
M-A Ruel
lgtm
7 years, 5 months ago (2013-07-08 18:01:20 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/petermayo@chromium.org/17742004/11001
7 years, 5 months ago (2013-07-09 14:38:18 UTC) #10
commit-bot: I haz the power
7 years, 5 months ago (2013-07-09 14:40:37 UTC) #11
Message was sent while issue was closed.
Change committed as 210573

Powered by Google App Engine
This is Rietveld 408576698