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

Issue 11046004: Added extra error message to trychange for empty diffs (Closed)

Created:
8 years, 2 months ago by hinoka
Modified:
8 years, 2 months ago
CC:
chromium-reviews, Dirk Pranke, cmp+cc_chromium.org
Base URL:
https://git.chromium.org/chromium/tools/depot_tools.git@master
Visibility:
Public.

Description

Added extra error message to trychange for empty diffs BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=159765

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M trychange.py View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
hinoka
I ran into this issue earlier today, trying to submit and empty try job and ...
8 years, 2 months ago (2012-10-02 20:22:22 UTC) #1
cmp
lgtm
8 years, 2 months ago (2012-10-02 20:53:56 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hinoka@chromium.org/11046004/1
8 years, 2 months ago (2012-10-02 21:03:52 UTC) #3
commit-bot: I haz the power
Change committed as 159765
8 years, 2 months ago (2012-10-02 21:06:57 UTC) #4
M-A Ruel
I thought empty diff worked? Le 2 oct. 2012 16:22, <hinoka@chromium.org> a écrit : > ...
8 years, 2 months ago (2012-10-02 21:07:29 UTC) #5
Ryan Tseng
It didn't seem to work for me, i ran "git try", and checkout.GenerateDiff() returned what ...
8 years, 2 months ago (2012-10-02 21:09:25 UTC) #6
M-A Ruel
On 2012/10/02 21:09:25, Ryan T. wrote: > It didn't seem to work for me, i ...
8 years, 2 months ago (2012-10-03 15:11:18 UTC) #7
Ryan Tseng
8 years, 2 months ago (2012-10-03 17:04:01 UTC) #8
In a fresh git checkout of the source tree, I ran "git try -b
linux_rel_alt", and that command exited with no error message (making it
kind of cryptic), but a return code of 1.  Checking the linux_rel_alt bot,
the try job didn't get sent to the master either.

I later realized that because it was a fresh checkout and I didn't make any
changes, running trychange.py produced an empty diff, which a part of the
code choked on and exited with an error.  This change just adds an error
message when it reaches that same condition before exiting.  I didn't know
if that was intentional or not.


On Wed, Oct 3, 2012 at 8:11 AM, <maruel@chromium.org> wrote:

> On 2012/10/02 21:09:25, Ryan T. wrote:
>
>> It didn't seem to work for me, i ran "git try", and
>> checkout.GenerateDiff()
>> returned what appeared to be an empty string.
>>
>
> I don't understand, what "didn't seem to work". Did you have a proper diff
> to
> generate?
>
>
http://codereview.chromium.**org/11046004/<http://codereview.chromium.org/110...
>

Powered by Google App Engine
This is Rietveld 408576698