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

Issue 331373009: Add recurselist DEPS var setting. (Closed)

Created:
6 years, 5 months ago by cmp
Modified:
6 years, 5 months ago
Reviewers:
Dirk Pranke, iannucci
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org, aneeshm
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Project:
tools
Visibility:
Public.

Description

Add recurselist DEPS var setting. Previously, recursion overrides were only available by setting a numeric 'depth' value in a DEPS file. This meant that it was not possible to control recursion per-dependency entry. This change adds a recurselist variable with a list structure. If a named dependency is present in the list, then gclient will recurse into that dependency's DEPS. As part of this change, I move the recursion controls off of DependencySetting and onto Dependency. The new setup of being based on Dependency allows access to the dependency's name. The controls are only called from Dependency instances. They have always needed access to self.parent (in the Dependency context), so this should be more correct than the previous setup. BUG=390246 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=280690

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix nits #

Patch Set 3 : clarify a comment #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -13 lines) Patch
M gclient.py View 1 6 chunks +37 lines, -11 lines 1 comment Download
M tests/gclient_test.py View 1 2 2 chunks +151 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
cmp
6 years, 5 months ago (2014-06-30 19:22:17 UTC) #1
Dirk Pranke
basically lgtm, just a couple of nits. The sooner I can switch to this for ...
6 years, 5 months ago (2014-06-30 20:02:41 UTC) #2
cmp
https://codereview.chromium.org/331373009/diff/1/gclient.py File gclient.py (right): https://codereview.chromium.org/331373009/diff/1/gclient.py#newcode315 gclient.py:315: # 'no recursion' setting on a dep-by-dep basis. It ...
6 years, 5 months ago (2014-06-30 20:04:47 UTC) #3
cmp
Updated comments.
6 years, 5 months ago (2014-06-30 20:07:01 UTC) #4
cmp
+aneesh, today's trooper Landing now. Though I verified locally this shouldn't cause problems, please revert ...
6 years, 5 months ago (2014-06-30 23:06:13 UTC) #5
cmp
The CQ bit was checked by cmp@chromium.org
6 years, 5 months ago (2014-06-30 23:06:16 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cmp@chromium.org/331373009/40001
6 years, 5 months ago (2014-06-30 23:06:29 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-06-30 23:08:07 UTC) #8
commit-bot: I haz the power
Presubmit check for 331373009-40001 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 5 months ago (2014-06-30 23:08:08 UTC) #9
cmp
The CQ bit was checked by cmp@chromium.org
6 years, 5 months ago (2014-06-30 23:11:11 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cmp@chromium.org/331373009/40001
6 years, 5 months ago (2014-06-30 23:11:59 UTC) #11
commit-bot: I haz the power
Change committed as 280690
6 years, 5 months ago (2014-06-30 23:14:37 UTC) #12
iannucci
6 years, 5 months ago (2014-06-30 23:37:05 UTC) #13
Message was sent while issue was closed.
lgtm w/ nit

https://codereview.chromium.org/331373009/diff/40001/gclient.py
File gclient.py (right):

https://codereview.chromium.org/331373009/diff/40001/gclient.py#newcode584
gclient.py:584: self.recurselist = local_scope.get('recurselist', None)
nit: I would have preferred recurselist actually be a set()

Powered by Google App Engine
This is Rietveld 408576698