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

Issue 835903003: Add script to generate the v8 version. (Closed)

Created:
5 years, 11 months ago by Michael Achenbach
Modified:
5 years, 11 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Add script to generate the v8 version. BUG=chromium:446166 LOG=n TBR=jkummerow@chromium.org NOTRY=true Committed: https://crrev.com/d09361ba946d547155ef84b211d101f91ebee090 Cr-Commit-Position: refs/heads/master@{#25964}

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : Review #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -0 lines) Patch
A tools/push-to-trunk/generate_version.py View 1 2 1 chunk +78 lines, -0 lines 1 comment Download

Messages

Total messages: 15 (6 generated)
Michael Achenbach
PTAL. Code could be more pythonish. The most important thing is that this code works ...
5 years, 11 months ago (2015-01-05 14:05:50 UTC) #2
tandrii_google
lgtm the only non-pythonic (sort of) thing I see is the capitalization of free functions. ...
5 years, 11 months ago (2015-01-05 14:46:09 UTC) #4
Michael Achenbach
Done
5 years, 11 months ago (2015-01-07 08:46:40 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/835903003/40001
5 years, 11 months ago (2015-01-07 08:48:26 UTC) #7
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years, 11 months ago (2015-01-07 08:48:28 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/835903003/40001
5 years, 11 months ago (2015-01-07 08:52:26 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 11 months ago (2015-01-07 08:52:38 UTC) #13
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/d09361ba946d547155ef84b211d101f91ebee090 Cr-Commit-Position: refs/heads/master@{#25964}
5 years, 11 months ago (2015-01-07 08:52:49 UTC) #14
Jakob Kummerow
5 years, 11 months ago (2015-01-07 09:18:22 UTC) #15
Message was sent while issue was closed.
LGTM

On 2015/01/05 14:46:09, tandrii_google wrote:
> the only non-pythonic (sort of) thing I see is the capitalization of free
> functions.

Since most code in V8 is C++, we tend to apply the C++ style guide's formatting
rules to scripts written in other languages. Personally, I'm happy with this,
because I think consistency within a project is more valuable than consistency
with other projects using the same language.

https://codereview.chromium.org/835903003/diff/40001/tools/push-to-trunk/gene...
File tools/push-to-trunk/generate_version.py (right):

https://codereview.chromium.org/835903003/diff/40001/tools/push-to-trunk/gene...
tools/push-to-trunk/generate_version.py:54: text = f.read()
More pythonification:

with open(VERSION_CC, "r") as f:
  for line in f:
    ...

Note that with the above, |line| will still have a trailing '\n'.

Powered by Google App Engine
This is Rietveld 408576698