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

Issue 1235353002: Fix resolution of local branch name in scm and rebaseline tools. (Closed)

Created:
5 years, 5 months ago by joelo
Modified:
5 years, 5 months ago
Reviewers:
Xianzhu, jsbell
CC:
blink-reviews
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Fix resolution of local branch name in scm and rebaseline tools. This was failing due to the newline at the end of the branch name. Also replaced the git command in current_branch() used in the scm tool with the version that doesn't crash when on detached head. BUG=510146 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199181

Patch Set 1 #

Total comments: 2

Patch Set 2 : move the fix to the scm tool instead #

Patch Set 3 : also check for detached HEAD in rebaseline-o-matic #

Total comments: 9

Patch Set 4 : convert HEAD to empty string #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -13 lines) Patch
M Tools/Scripts/webkitpy/common/checkout/scm/git.py View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M Tools/Scripts/webkitpy/tool/commands/rebaseline.py View 1 2 3 6 chunks +16 lines, -8 lines 0 comments Download
M Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py View 1 4 chunks +0 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
joelo
ptal?
5 years, 5 months ago (2015-07-15 20:54:41 UTC) #2
Xianzhu
https://codereview.chromium.org/1235353002/diff/1/Tools/Scripts/webkitpy/tool/commands/rebaseline.py File Tools/Scripts/webkitpy/tool/commands/rebaseline.py (right): https://codereview.chromium.org/1235353002/diff/1/Tools/Scripts/webkitpy/tool/commands/rebaseline.py#newcode846 Tools/Scripts/webkitpy/tool/commands/rebaseline.py:846: ["git", "rev-parse", "--symbolic-full-name", "HEAD"]).strip() If scm.current_branch() had problem we ...
5 years, 5 months ago (2015-07-15 21:16:58 UTC) #3
joelo
Thanks, @wangxianzhu. ptal? https://codereview.chromium.org/1235353002/diff/1/Tools/Scripts/webkitpy/tool/commands/rebaseline.py File Tools/Scripts/webkitpy/tool/commands/rebaseline.py (right): https://codereview.chromium.org/1235353002/diff/1/Tools/Scripts/webkitpy/tool/commands/rebaseline.py#newcode846 Tools/Scripts/webkitpy/tool/commands/rebaseline.py:846: ["git", "rev-parse", "--symbolic-full-name", "HEAD"]).strip() On 2015/07/15 ...
5 years, 5 months ago (2015-07-16 21:48:48 UTC) #4
Xianzhu
https://codereview.chromium.org/1235353002/diff/40001/Tools/Scripts/webkitpy/common/checkout/scm/git.py File Tools/Scripts/webkitpy/common/checkout/scm/git.py (right): https://codereview.chromium.org/1235353002/diff/40001/Tools/Scripts/webkitpy/common/checkout/scm/git.py#newcode137 Tools/Scripts/webkitpy/common/checkout/scm/git.py:137: # Returns an empty string if HEAD is detached. ...
5 years, 5 months ago (2015-07-16 22:01:20 UTC) #5
joelo
ptal :) https://codereview.chromium.org/1235353002/diff/40001/Tools/Scripts/webkitpy/common/checkout/scm/git.py File Tools/Scripts/webkitpy/common/checkout/scm/git.py (right): https://codereview.chromium.org/1235353002/diff/40001/Tools/Scripts/webkitpy/common/checkout/scm/git.py#newcode137 Tools/Scripts/webkitpy/common/checkout/scm/git.py:137: # Returns an empty string if HEAD ...
5 years, 5 months ago (2015-07-16 23:00:12 UTC) #6
Xianzhu
lgtm. https://codereview.chromium.org/1235353002/diff/40001/Tools/Scripts/webkitpy/tool/commands/rebaseline.py File Tools/Scripts/webkitpy/tool/commands/rebaseline.py (right): https://codereview.chromium.org/1235353002/diff/40001/Tools/Scripts/webkitpy/tool/commands/rebaseline.py#newcode846 Tools/Scripts/webkitpy/tool/commands/rebaseline.py:846: if not old_branch_name: On 2015/07/16 23:00:11, joelo wrote: ...
5 years, 5 months ago (2015-07-16 23:21:39 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1235353002/60001
5 years, 5 months ago (2015-07-20 18:09:11 UTC) #9
commit-bot: I haz the power
5 years, 5 months ago (2015-07-20 19:23:51 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=199181

Powered by Google App Engine
This is Rietveld 408576698