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

Issue 864953003: Teach update_from_chromium.py to preserve certain files through roll. (Closed)

Created:
5 years, 11 months ago by blundell
Modified:
5 years, 10 months ago
Reviewers:
jamesr
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Teach update_from_chromium.py to preserve certain files through roll. This CL adds a step to the process of rolling from Chromium wherein a specified set of files have their contents preserved through the roll even though they live in directories rolled in from Chromium. The first usage of this infrastructure is to support the existence of a //build/config/mojo.gni file that differs between Mojo and Chromium. //build/config/mojo.gni will start being used in a followup CL. R=jamesr@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/977e2fec0fa3eaf70bd873fc5f537a2aa59b266d

Patch Set 1 #

Patch Set 2 : Use script in roll #

Patch Set 3 : Change README #

Patch Set 4 : bugfix #

Patch Set 5 : Formatting #

Patch Set 6 : Maintain files in-place #

Patch Set 7 : nit #

Total comments: 2

Patch Set 8 : Response to review #

Total comments: 2

Patch Set 9 : Response to review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -1 line) Patch
A + build/config/mojo.gni View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M mojo/tools/roll/update_from_chromium.py View 1 2 3 4 5 6 7 8 2 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
blundell
5 years, 10 months ago (2015-01-28 10:21:03 UTC) #2
blundell
ping.
5 years, 10 months ago (2015-01-30 15:19:30 UTC) #3
jamesr
Why can't you teach the roll script to just preserve certain files in-place rather than ...
5 years, 10 months ago (2015-01-31 01:50:50 UTC) #4
blundell
Done.
5 years, 10 months ago (2015-02-02 20:10:26 UTC) #5
jamesr
Actually we have a copy of the previous version in git - why not just ...
5 years, 10 months ago (2015-02-02 20:28:09 UTC) #6
jamesr
https://codereview.chromium.org/864953003/diff/120001/build/config/mojo.gni File build/config/mojo.gni (right): https://codereview.chromium.org/864953003/diff/120001/build/config/mojo.gni#newcode1 build/config/mojo.gni:1: # Copyright 2015 The Chromium Authors. All rights reserved. ...
5 years, 10 months ago (2015-02-02 20:28:45 UTC) #7
blundell
Changed to restore the pre-roll rev. https://codereview.chromium.org/864953003/diff/120001/build/config/mojo.gni File build/config/mojo.gni (right): https://codereview.chromium.org/864953003/diff/120001/build/config/mojo.gni#newcode1 build/config/mojo.gni:1: # Copyright 2015 ...
5 years, 10 months ago (2015-02-02 21:15:58 UTC) #9
jamesr
lgtm https://codereview.chromium.org/864953003/diff/130004/mojo/tools/roll/update_from_chromium.py File mojo/tools/roll/update_from_chromium.py (right): https://codereview.chromium.org/864953003/diff/130004/mojo/tools/roll/update_from_chromium.py#newcode139 mojo/tools/roll/update_from_chromium.py:139: commit("Restored pre-roll versions of files that don't get ...
5 years, 10 months ago (2015-02-02 21:26:56 UTC) #10
blundell
Committed patchset #9 (id:170001) manually as 977e2fec0fa3eaf70bd873fc5f537a2aa59b266d (presubmit successful).
5 years, 10 months ago (2015-02-03 08:26:35 UTC) #11
blundell
5 years, 10 months ago (2015-02-03 08:29:48 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/864953003/diff/130004/mojo/tools/roll/update_...
File mojo/tools/roll/update_from_chromium.py (right):

https://codereview.chromium.org/864953003/diff/130004/mojo/tools/roll/update_...
mojo/tools/roll/update_from_chromium.py:139: commit("Restored pre-roll versions
of files that don't get rolled")
On 2015/02/02 21:26:56, jamesr wrote:
> commit after the loop (you don't want to commit for every single file) and
skip
> this commit if the files_to_not_roll is empty

Done.

Powered by Google App Engine
This is Rietveld 408576698