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

Issue 488733002: Get lastchange.py to work correctly on Git repositories. (Closed)

Created:
6 years, 4 months ago by agable
Modified:
6 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Get lastchange.py to work correctly on Git repositories. This changes lastchange.py in two ways: 1) If the commit it finds is a Git hash, it outputs the whole hash, not just the first 7 characters. 2) It only looks at HEAD to see if there is a git-svn id. Previously, it used --grep=git-svn-id, which would find the most recent commit containing a git-svn id. This would be broken after the switch to git, as it would always find the last commit before the switch. Now, it only inspects the most recent commit, and falls through to pure-Git if that fails. R=dilmah@chromium.org, stip@chromium.org BUG=399113 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291165

Patch Set 1 #

Total comments: 2

Patch Set 2 : Append Cr-Commit-Position if it exists #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -4 lines) Patch
M build/util/lastchange.py View 1 2 chunks +16 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
agable
PTAL. dilmah@ since the code I'm modifying is blamed to you, stip@ because you're on ...
6 years, 4 months ago (2014-08-19 18:44:50 UTC) #1
iannucci
https://codereview.chromium.org/488733002/diff/1/build/util/lastchange.py File build/util/lastchange.py (right): https://codereview.chromium.org/488733002/diff/1/build/util/lastchange.py#newcode106 build/util/lastchange.py:106: return VersionInfo('git', output) should we include the commit position ...
6 years, 4 months ago (2014-08-19 18:49:46 UTC) #2
iannucci
On 2014/08/19 18:49:46, iannucci wrote: > https://codereview.chromium.org/488733002/diff/1/build/util/lastchange.py > File build/util/lastchange.py (right): > > https://codereview.chromium.org/488733002/diff/1/build/util/lastchange.py#newcode106 > ...
6 years, 4 months ago (2014-08-19 18:50:22 UTC) #3
agable
https://codereview.chromium.org/488733002/diff/1/build/util/lastchange.py File build/util/lastchange.py (right): https://codereview.chromium.org/488733002/diff/1/build/util/lastchange.py#newcode106 build/util/lastchange.py:106: return VersionInfo('git', output) On 2014/08/19 18:49:46, iannucci wrote: > ...
6 years, 4 months ago (2014-08-19 22:00:30 UTC) #4
iannucci
On 2014/08/19 22:00:30, agable wrote: > https://codereview.chromium.org/488733002/diff/1/build/util/lastchange.py > File build/util/lastchange.py (right): > > https://codereview.chromium.org/488733002/diff/1/build/util/lastchange.py#newcode106 > ...
6 years, 4 months ago (2014-08-19 22:03:30 UTC) #5
agable
On 2014/08/19 22:03:30, iannucci wrote: > On 2014/08/19 22:00:30, agable wrote: > > https://codereview.chromium.org/488733002/diff/1/build/util/lastchange.py > ...
6 years, 4 months ago (2014-08-20 18:40:47 UTC) #6
Evan Martin
First seven chars of the hash is pretty standard git identifier info. http://stackoverflow.com/questions/7128444/how-does-github-handle-possible-collisions-from-short-shas However, from ...
6 years, 4 months ago (2014-08-20 18:49:01 UTC) #7
scottmg
On 2014/08/20 18:40:47, agable wrote: > On 2014/08/19 22:03:30, iannucci wrote: > > On 2014/08/19 ...
6 years, 4 months ago (2014-08-20 19:42:26 UTC) #8
iannucci
On 2014/08/20 19:42:26, scottmg wrote: > On 2014/08/20 18:40:47, agable wrote: > > On 2014/08/19 ...
6 years, 4 months ago (2014-08-20 20:34:06 UTC) #9
agable
On 2014/08/20 20:34:06, iannucci wrote: > On 2014/08/20 19:42:26, scottmg wrote: > > On 2014/08/20 ...
6 years, 4 months ago (2014-08-20 21:47:39 UTC) #10
scottmg
On 2014/08/20 21:47:39, agable wrote: > On 2014/08/20 20:34:06, iannucci wrote: > > On 2014/08/20 ...
6 years, 4 months ago (2014-08-20 21:56:20 UTC) #11
iannucci
lgtm, fwiw :)
6 years, 4 months ago (2014-08-20 22:15:41 UTC) #12
iannucci
lgtm
6 years, 4 months ago (2014-08-20 22:17:22 UTC) #13
iannucci
oops >_<
6 years, 4 months ago (2014-08-20 22:17:34 UTC) #14
scottmg
On 2014/08/20 22:17:34, iannucci wrote: > oops >_< lgtm
6 years, 4 months ago (2014-08-20 22:19:43 UTC) #15
agable
> pos will be something like "refs/heads/master@{#290659}", right? > > "57cce2b8bd8e4c3f4401ca22fc8bd3efcd51e6f0-refs/heads/master@{#290659}" > > LGTM! (maybe ...
6 years, 4 months ago (2014-08-21 15:15:55 UTC) #16
agable
The CQ bit was checked by agable@chromium.org
6 years, 4 months ago (2014-08-21 15:16:03 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/agable@chromium.org/488733002/20001
6 years, 4 months ago (2014-08-21 15:18:19 UTC) #18
commit-bot: I haz the power
6 years, 4 months ago (2014-08-21 20:27:54 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (20001) as 291165

Powered by Google App Engine
This is Rietveld 408576698