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

Issue 645763002: Improve error handling in git-rebase-update (Closed)

Created:
6 years, 2 months ago by Sam Clegg
Modified:
6 years, 2 months ago
Reviewers:
iannucci
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Project:
tools
Visibility:
Public.

Description

Improve error handling in git-rebase-update Don't discard stderr from failed rebase operations I had an issue where stdout of the failed rebase was empty but stderr contained: First, rewinding head to replay your work on top of it... Dirty index: cannot apply patches (dirty: internal_gyp third_party/html_office). Also, in my case the second rebase was actually succeeding for some reason, which is clearly no expected, so assert in this case. BUG=410339 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=292444

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -8 lines) Patch
M git_common.py View 2 chunks +3 lines, -3 lines 0 comments Download
M git_rebase_update.py View 1 2 chunks +11 lines, -5 lines 1 comment Download

Messages

Total messages: 13 (2 generated)
Sam Clegg
https://codereview.chromium.org/645763002/diff/1/git_rebase_update.py File git_rebase_update.py (right): https://codereview.chromium.org/645763002/diff/1/git_rebase_update.py#newcode152 git_rebase_update.py:152: git.rebase(parent, start_hash, branch) In my case this final rebase ...
6 years, 2 months ago (2014-10-10 00:15:12 UTC) #2
iannucci
lgtm, thanks :) https://codereview.chromium.org/645763002/diff/1/git_rebase_update.py File git_rebase_update.py (right): https://codereview.chromium.org/645763002/diff/1/git_rebase_update.py#newcode152 git_rebase_update.py:152: git.rebase(parent, start_hash, branch) On 2014/10/10 00:15:12, ...
6 years, 2 months ago (2014-10-10 02:35:01 UTC) #3
Sam Clegg
OK, I changed this to add an assertion if the second rebase magically succeeds. I ...
6 years, 2 months ago (2014-10-13 17:14:26 UTC) #4
iannucci
On 2014/10/13 17:14:26, Sam Clegg wrote: > OK, I changed this to add an assertion ...
6 years, 2 months ago (2014-10-13 17:40:38 UTC) #5
iannucci
https://codereview.chromium.org/645763002/diff/80001/git_rebase_update.py File git_rebase_update.py (right): https://codereview.chromium.org/645763002/diff/80001/git_rebase_update.py#newcode156 git_rebase_update.py:156: assert(not second_rebase_ret.success) I would actually throw an AssertionError with ...
6 years, 2 months ago (2014-10-13 17:41:39 UTC) #6
Sam Clegg
On 2014/10/13 17:40:38, iannucci wrote: > On 2014/10/13 17:14:26, Sam Clegg wrote: > > OK, ...
6 years, 2 months ago (2014-10-13 17:47:39 UTC) #7
iannucci
On 2014/10/13 17:47:39, Sam Clegg wrote: > On 2014/10/13 17:40:38, iannucci wrote: > > On ...
6 years, 2 months ago (2014-10-13 18:09:35 UTC) #8
iannucci
lgtm though I would definitely throw a more informative error
6 years, 2 months ago (2014-10-13 18:10:05 UTC) #9
Sam Clegg
On 2014/10/13 18:09:35, iannucci wrote: > On 2014/10/13 17:47:39, Sam Clegg wrote: > > On ...
6 years, 2 months ago (2014-10-13 18:45:00 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/645763002/80001
6 years, 2 months ago (2014-10-13 20:59:05 UTC) #12
commit-bot: I haz the power
6 years, 2 months ago (2014-10-13 21:01:03 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:80001) as 292444

Powered by Google App Engine
This is Rietveld 408576698