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

Issue 368713002: Add fallback to DEPS from a missing deps file. (Closed)

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

Description

Add fallback to DEPS from a missing deps file. It's possible to tell gclient to use a different "deps" file from the default DEPS through the "deps_file" variable in the .gclient file. If this file is missing, fallback to DEPS (the default). BUG=390700 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=280921

Patch Set 1 #

Total comments: 6

Patch Set 2 : fix comment #

Patch Set 3 : avoid testing for file existence twice when deps_file is already DEPS #

Total comments: 1

Patch Set 4 : let logging interpolate #

Total comments: 3

Patch Set 5 : update #

Patch Set 6 : fix indent #

Patch Set 7 : update test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -6 lines) Patch
M gclient.py View 1 2 3 4 5 1 chunk +18 lines, -6 lines 0 comments Download
M tests/gclient_smoketest.py View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M tests/gclient_test.py View 1 2 3 4 1 chunk +60 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
cmp
6 years, 5 months ago (2014-07-01 21:59:08 UTC) #1
agable
LGTM, sorry for duplicating effort. https://codereview.chromium.org/368713002/diff/1/gclient.py File gclient.py (right): https://codereview.chromium.org/368713002/diff/1/gclient.py#newcode546 gclient.py:546: 'ParseDepsFile(%s): %s file found ...
6 years, 5 months ago (2014-07-01 22:03:51 UTC) #2
iannucci
https://codereview.chromium.org/368713002/diff/1/gclient.py File gclient.py (right): https://codereview.chromium.org/368713002/diff/1/gclient.py#newcode541 gclient.py:541: deps_files = [self.deps_file, 'DEPS'] hm... would be best to ...
6 years, 5 months ago (2014-07-01 22:04:08 UTC) #3
cmp
https://codereview.chromium.org/368713002/diff/1/gclient.py File gclient.py (right): https://codereview.chromium.org/368713002/diff/1/gclient.py#newcode541 gclient.py:541: deps_files = [self.deps_file, 'DEPS'] On 2014/07/01 22:04:08, iannucci wrote: ...
6 years, 5 months ago (2014-07-01 22:11:51 UTC) #4
iannucci
https://codereview.chromium.org/368713002/diff/40001/gclient.py File gclient.py (right): https://codereview.chromium.org/368713002/diff/40001/gclient.py#newcode541 gclient.py:541: deps_files = set([self.deps_file, 'DEPS']) yeah but order is still ...
6 years, 5 months ago (2014-07-01 22:13:58 UTC) #5
cmp
https://codereview.chromium.org/368713002/diff/1/gclient.py File gclient.py (right): https://codereview.chromium.org/368713002/diff/1/gclient.py#newcode546 gclient.py:546: 'ParseDepsFile(%s): %s file found at %s' % ( On ...
6 years, 5 months ago (2014-07-01 22:14:21 UTC) #6
agable
re-lgtm % two more nits. https://codereview.chromium.org/368713002/diff/60001/gclient.py File gclient.py (right): https://codereview.chromium.org/368713002/diff/60001/gclient.py#newcode541 gclient.py:541: deps_files = set([self.deps_file, 'DEPS']) ...
6 years, 5 months ago (2014-07-01 22:17:47 UTC) #7
iannucci
https://chromiumcodereview.appspot.com/368713002/diff/60001/gclient.py File gclient.py (right): https://chromiumcodereview.appspot.com/368713002/diff/60001/gclient.py#newcode541 gclient.py:541: deps_files = set([self.deps_file, 'DEPS']) On 2014/07/01 22:17:46, agable wrote: ...
6 years, 5 months ago (2014-07-01 22:21:40 UTC) #8
cmp
PTAL, keep the standards high.
6 years, 5 months ago (2014-07-01 22:31:54 UTC) #9
iannucci
lgtm :)
6 years, 5 months ago (2014-07-01 22:33:56 UTC) #10
cmp
+luqui fyi
6 years, 5 months ago (2014-07-01 22:36:27 UTC) #11
cmp
The CQ bit was checked by cmp@chromium.org
6 years, 5 months ago (2014-07-01 22:39:42 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cmp@chromium.org/368713002/90003
6 years, 5 months ago (2014-07-01 22:40:04 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-01 22:41:57 UTC) #14
commit-bot: I haz the power
Presubmit check for 368713002-90003 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 5 months ago (2014-07-01 22:41:57 UTC) #15
cmp
The CQ bit was checked by cmp@chromium.org
6 years, 5 months ago (2014-07-01 22:45:02 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cmp@chromium.org/368713002/90003
6 years, 5 months ago (2014-07-01 22:45:27 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-01 22:47:14 UTC) #18
commit-bot: I haz the power
Presubmit check for 368713002-90003 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 5 months ago (2014-07-01 22:47:16 UTC) #19
cmp
The CQ bit was checked by cmp@chromium.org
6 years, 5 months ago (2014-07-01 22:47:26 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cmp@chromium.org/368713002/90003
6 years, 5 months ago (2014-07-01 22:48:26 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-01 22:50:30 UTC) #22
commit-bot: I haz the power
Presubmit check for 368713002-90003 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 5 months ago (2014-07-01 22:50:31 UTC) #23
cmp
The CQ bit was checked by cmp@chromium.org
6 years, 5 months ago (2014-07-01 22:51:32 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cmp@chromium.org/368713002/90003
6 years, 5 months ago (2014-07-01 22:52:22 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-01 22:54:06 UTC) #26
commit-bot: I haz the power
Presubmit check for 368713002-90003 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 5 months ago (2014-07-01 22:54:06 UTC) #27
iannucci
On 2014/07/01 22:54:06, I haz the power (commit-bot) wrote: > Presubmit check for 368713002-90003 failed ...
6 years, 5 months ago (2014-07-01 23:13:14 UTC) #28
cmp
On 2014/07/01 23:13:14, iannucci wrote: > What happened here? I assumed this was flake, so ...
6 years, 5 months ago (2014-07-01 23:15:41 UTC) #29
cmp
Updated test so it passes now.
6 years, 5 months ago (2014-07-02 00:09:45 UTC) #30
cmp
The CQ bit was checked by cmp@chromium.org
6 years, 5 months ago (2014-07-02 00:09:50 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cmp@chromium.org/368713002/110001
6 years, 5 months ago (2014-07-02 00:10:55 UTC) #32
commit-bot: I haz the power
6 years, 5 months ago (2014-07-02 00:13:20 UTC) #33
Message was sent while issue was closed.
Change committed as 280921

Powered by Google App Engine
This is Rietveld 408576698