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

Issue 1162763003: Fix git branch parsing. (Closed)

Created:
5 years, 6 months ago by Adrian Kuegel
Modified:
5 years, 6 months ago
Reviewers:
iannucci
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Target Ref:
refs/remotes/origin/master
Visibility:
Public.

Description

Fix git branch parsing. In git version 2.4 the git branch command prints "* (HEAD detached at" or "* (HEAD detached from" instead of "* (detached from". Adjust the parsing to make our tests still work with git 2.4. BUG=487172 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=295578

Patch Set 1 : #

Patch Set 2 : Simplify #

Patch Set 3 : Add debug output. #

Patch Set 4 : Fix it for real. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -10 lines) Patch
M git_common.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tests/git_common_test.py View 4 chunks +1 line, -6 lines 0 comments Download
M tests/git_rebase_update_test.py View 1 2 3 chunks +1 line, -3 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
Adrian Kuegel
Robbie, can you please review this CL? I did the change you suggested, and it ...
5 years, 6 months ago (2015-06-08 13:46:24 UTC) #4
iannucci
Try just "* (detached"? On Mon, Jun 8, 2015, 06:46 <akuegel@chromium.org> wrote: > Reviewers: iannucci, ...
5 years, 6 months ago (2015-06-08 16:01:49 UTC) #5
Adrian Kuegel
That also works, of course. It just makes it less obvious that both cases can ...
5 years, 6 months ago (2015-06-08 16:05:20 UTC) #6
iannucci
Lgtm thanks :)
5 years, 6 months ago (2015-06-08 16:09:36 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1162763003/60001
5 years, 6 months ago (2015-06-08 16:10:15 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: depot_tools_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/depot_tools_presubmit/builds/23)
5 years, 6 months ago (2015-06-08 16:16:17 UTC) #11
Adrian Kuegel
Hmm, I didn't realize the presubmit tests running on upload don't include those tests. So ...
5 years, 6 months ago (2015-06-08 16:16:37 UTC) #12
Adrian Kuegel
On 2015/06/08 16:16:37, Adrian Kuegel wrote: > Hmm, I didn't realize the presubmit tests running ...
5 years, 6 months ago (2015-06-08 16:21:08 UTC) #13
iannucci
Oh weird :( On Mon, Jun 8, 2015, 09:21 <akuegel@chromium.org> wrote: > On 2015/06/08 16:16:37, ...
5 years, 6 months ago (2015-06-08 16:26:45 UTC) #14
Adrian Kuegel
On 2015/06/08 16:26:45, iannucci wrote: > Oh weird :( > > On Mon, Jun 8, ...
5 years, 6 months ago (2015-06-08 16:30:55 UTC) #15
iannucci
:) Maybe add a bunch of debug logs in one patch? On Mon, Jun 8, ...
5 years, 6 months ago (2015-06-08 16:36:25 UTC) #16
Adrian Kuegel
And it works now. Apparently in addition to printing "detached at", git 2.4 also adds ...
5 years, 6 months ago (2015-06-09 15:23:17 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1162763003/120001
5 years, 6 months ago (2015-06-09 15:23:43 UTC) #21
commit-bot: I haz the power
5 years, 6 months ago (2015-06-09 15:26:41 UTC) #22
Message was sent while issue was closed.
Committed patchset #4 (id:120001) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=295578

Powered by Google App Engine
This is Rietveld 408576698