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

Issue 6621043: When listing things for pruning, include anything that has an override depend... (Closed)

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

Description

When listing things for pruning, include anything that has an override dependency of None. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=77284

Patch Set 1 #

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

Messages

Total messages: 2 (0 generated)
TVL
9 years, 9 months ago (2011-03-07 15:00:57 UTC) #1
M-A Ruel
9 years, 9 months ago (2011-03-08 13:43:24 UTC) #2
lgtm with less characters.

http://codereview.chromium.org/6621043/diff/1/gclient.py
File gclient.py (right):

http://codereview.chromium.org/6621043/diff/1/gclient.py#newcode737
gclient.py:737: entries = [i.name for i in self.tree(False) if i.url != None]
"if i.url" would be sufficient. I think it's fine to assume '' and None has the
same behavior?

For instance in run() at line 348, it uses if run_scm and self.parsed_url so ''
will have the same effect as None.

I'm not 100% sure though because LateOverride() has a different code path
depending if the url is a string or a None object. I guess if url == '', it's
just currently broken. In any case to stay safe it'd drop the "!= None".

Powered by Google App Engine
This is Rietveld 408576698