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

Issue 2832006: Fix git cl code to get the changelist description without using gcl.... (Closed)

Created:
10 years, 6 months ago by tedbo
Modified:
9 years, 7 months ago
CC:
chromium-reviews, M-A Ruel
Visibility:
Public.

Description

Fix git cl code to get the changelist description without using gcl. The git_cl_hooks.py was failing to get the changelist description. It was using gcl to get the description but this was failing because gcl was unable to get the cached copy of codereview.settings (because it was never set up). In this case, gcl reverts to the default dictionary which may be incorrect in some cases. This changes to use 'git cl status --field=desc', which is aware of the codereview.settings. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=49878

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 1

Patch Set 4 : '' #

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

Messages

Total messages: 7 (0 generated)
tedbo
This is coming from a read-only repository so I can't submit this. I'm looking for ...
10 years, 6 months ago (2010-06-15 23:21:38 UTC) #1
M-A Ruel
http://codereview.chromium.org/2832006/diff/1/2 File git_cl_hooks.py (right): http://codereview.chromium.org/2832006/diff/1/2#newcode55 git_cl_hooks.py:55: description = "Missing description." Don't use tabs in python ...
10 years, 6 months ago (2010-06-16 00:12:25 UTC) #2
tedbo
On Tue, Jun 15, 2010 at 5:12 PM, <maruel@chromium.org> wrote: > > http://codereview.chromium.org/2832006/diff/1/2 > File ...
10 years, 6 months ago (2010-06-16 00:28:52 UTC) #3
M-A Ruel
lgtm after further simplification http://codereview.chromium.org/2832006/diff/6001/7001 File git_cl_hooks.py (right): http://codereview.chromium.org/2832006/diff/6001/7001#newcode54 git_cl_hooks.py:54: if not description: well, after ...
10 years, 6 months ago (2010-06-16 00:39:36 UTC) #4
tony
If you delete ~/.codereview_upload_cookies then try to do a git cl upload, you get what ...
10 years, 4 months ago (2010-08-04 22:09:15 UTC) #5
M-A Ruel
[Adding Evan] On 2010/08/04 22:09:15, tony wrote: > If you delete ~/.codereview_upload_cookies then try to ...
10 years, 2 months ago (2010-10-01 01:00:43 UTC) #6
Mandeep Singh Baines
10 years, 2 months ago (2010-10-07 19:05:27 UTC) #7
Following up. This is now fixed:)

On Thu, Sep 30, 2010 at 6:00 PM,  <maruel@chromium.org> wrote:
> [Adding Evan]
>
> On 2010/08/04 22:09:15, tony wrote:
>>
>> If you delete ~/.codereview_upload_cookies then try to do a git cl upload,
>> you
>> get what appears to be a hang.  It is actually this call to git cl status
>> --field=desc waiting on user input for email/password (but you don't see
>> the
>> prompt because it's happening in a subprocess).
>
>> I'm not sure if there's a recent regression or if it's been around for a
>
> while.
>>
>> It would be nice if we can come up with a way for this to work without
>> having
>
> to
>>
>> prompt the user multiple times.
>
> Eh I rediagnosed this problem recently. Someone should fix this eventually.
> :)
>
> http://codereview.chromium.org/2832006/show
>

Powered by Google App Engine
This is Rietveld 408576698