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

Issue 363103002: Update recurselist to be a set, call it recursedeps now. (Closed)

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

Description

Update recurselist to be a set, call it recursedeps now. Now that recurselist is no longer a list, it doesn't make sense to call it recurselist. recurseset is available, but that's not as easy to read/say compared to recurselist. Call this recursedeps, instead. R=iannucci@chromium.org BUG=390246 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=281107

Patch Set 1 #

Patch Set 2 : another recurselist -> recursedeps #

Total comments: 2

Patch Set 3 : update syntax #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -30 lines) Patch
M gclient.py View 4 chunks +12 lines, -12 lines 1 comment Download
M tests/gclient_test.py View 1 2 6 chunks +18 lines, -18 lines 1 comment Download

Messages

Total messages: 10 (1 generated)
cmp
6 years, 5 months ago (2014-07-02 20:06:25 UTC) #1
cmp
+agable
6 years, 5 months ago (2014-07-02 22:01:54 UTC) #2
cmp
+dpranke
6 years, 5 months ago (2014-07-02 22:02:08 UTC) #3
agable
LGTM % set vs. tuple. https://codereview.chromium.org/363103002/diff/20001/tests/gclient_test.py File tests/gclient_test.py (right): https://codereview.chromium.org/363103002/diff/20001/tests/gclient_test.py#newcode667 tests/gclient_test.py:667: - |recursedeps| = (...) ...
6 years, 5 months ago (2014-07-02 22:05:06 UTC) #4
cmp
https://codereview.chromium.org/363103002/diff/20001/tests/gclient_test.py File tests/gclient_test.py (right): https://codereview.chromium.org/363103002/diff/20001/tests/gclient_test.py#newcode667 tests/gclient_test.py:667: - |recursedeps| = (...) on 2 levels means we ...
6 years, 5 months ago (2014-07-02 22:16:41 UTC) #5
cmp
The CQ bit was checked by cmp@chromium.org
6 years, 5 months ago (2014-07-02 23:16:39 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/363103002/40001
6 years, 5 months ago (2014-07-02 23:17:39 UTC) #7
commit-bot: I haz the power
Change committed as 281107
6 years, 5 months ago (2014-07-02 23:20:10 UTC) #8
iannucci
6 years, 5 months ago (2014-07-03 18:55:59 UTC) #9
Message was sent while issue was closed.
lgtm

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

https://codereview.chromium.org/363103002/diff/40001/gclient.py#newcode596
gclient.py:596: self.recursedeps = local_scope.get('recursedeps', None)
could also cast to a set here. If it's already a set then it shouldn't do
anything. If not, then everything else won't be assuming set and actually
dealing with e.g. list, tuple, dict, etc.

https://codereview.chromium.org/363103002/diff/40001/tests/gclient_test.py
File tests/gclient_test.py (right):

https://codereview.chromium.org/363103002/diff/40001/tests/gclient_test.py#ne...
tests/gclient_test.py:686: 'recursedeps = {"bar"}')
Note that the {'foo'} syntax is actually python 2.7, and as M-A recently pointed
out, not all masters are actually on 2.7 yet. This just means we'll have to use
set(('foo',)) in the DEPS files for now.

Powered by Google App Engine
This is Rietveld 408576698