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

Issue 2474543002: Implement a first pass of `gclient flatten`. (Closed)

Created:
4 years, 1 month ago by Dirk Pranke
Modified:
3 years, 6 months ago
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Implement a first pass of `gclient flatten`. Currently when we do official Chrome releases we take a .gclient and corresponding set of DEPS files and hand-parse them to produce a single "flattened" DEPS file (called a buildspec) that contains no recursion and that can be used to recreate a branch or a release "exactly". This CL adds that functionality to gclient so that we can reuse the parsing logic, which will be needed as we implement support for conditionals and other such things in crbug.com/570091. R=mmoss@chromium.org, dimu@chromium.org, agable@chromium.org, iannucci@chromium.org BUG=661382

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -1 line) Patch
M gclient.py View 2 chunks +93 lines, -1 line 5 comments Download

Messages

Total messages: 7 (1 generated)
agable
https://codereview.chromium.org/2474543002/diff/1/gclient.py File gclient.py (right): https://codereview.chromium.org/2474543002/diff/1/gclient.py#newcode1664 gclient.py:1664: 'specific revision.') And that the .gclient_entries file matches what's ...
4 years, 1 month ago (2016-11-02 17:53:26 UTC) #1
Dirk Pranke
https://codereview.chromium.org/2474543002/diff/1/gclient.py File gclient.py (right): https://codereview.chromium.org/2474543002/diff/1/gclient.py#newcode1664 gclient.py:1664: 'specific revision.') On 2016/11/02 17:53:26, agable wrote: > And ...
4 years, 1 month ago (2016-11-02 19:01:22 UTC) #2
agable
I'm pretty sure the only purpose of .gclient_entries these days is to speed up execution ...
4 years, 1 month ago (2016-11-02 19:29:54 UTC) #3
Michael Moss
https://codereview.chromium.org/2474543002/diff/1/gclient.py File gclient.py (right): https://codereview.chromium.org/2474543002/diff/1/gclient.py#newcode1664 gclient.py:1664: 'specific revision.') On 2016/11/02 17:53:26, agable wrote: > And ...
4 years, 1 month ago (2016-11-02 20:50:30 UTC) #4
Dirk Pranke
On 2016/11/02 20:50:30, Michael Moss wrote: > https://codereview.chromium.org/2474543002/diff/1/gclient.py > File gclient.py (right): > > https://codereview.chromium.org/2474543002/diff/1/gclient.py#newcode1664 ...
4 years, 1 month ago (2016-11-03 00:20:08 UTC) #5
Michael Moss
4 years, 1 month ago (2016-11-03 00:26:49 UTC) #6
On 2016/11/03 00:20:08, Dirk Pranke wrote:
> On 2016/11/02 20:50:30, Michael Moss wrote:
> > https://codereview.chromium.org/2474543002/diff/1/gclient.py
> > File gclient.py (right):
> > 
> > https://codereview.chromium.org/2474543002/diff/1/gclient.py#newcode1664
> > gclient.py:1664: 'specific revision.')
> > On 2016/11/02 17:53:26, agable wrote:
> > > And that the .gclient_entries file matches what's actually on the
> filesystem,
> > > maybe?
> > 
> > Assuming --verify ends up using gitiles requests, it wouldn't necessarily
work
> > as the same command to verify a checkout, but we could have two types of
> > verification. Maybe --validate (syntax and hashes) and --fsck (with it's
> implied
> > meaning of checking stuff on disk), or something like that.
> 
> I'm not sure if --fsck is really all that useful (or, at least, different from
> `gclient status`
> (or, if it is, we should probably fix status so that it isn't).

Yeah, I was just thinking in the context of the previous comments. I agree
'status' would be a better place to handle that.

Powered by Google App Engine
This is Rietveld 408576698