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

Issue 1901733003: git_cl: description fetching from code review servers. (Closed)

Created:
4 years, 8 months ago by martiniss
Modified:
4 years, 8 months ago
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org, tandrii+omg_git_cl_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

git_cl: description fetching from code review servers. BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=300207

Patch Set 1 #

Total comments: 11

Patch Set 2 : Simplified a lot yay. #

Total comments: 14

Patch Set 3 : Simplify more, tests. #

Total comments: 2

Patch Set 4 : Small whitespace. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -3 lines) Patch
M git_cl.py View 1 2 3 1 chunk +20 lines, -3 lines 0 comments Download
M tests/git_cl_test.py View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
martiniss
PTAL Not sure if it's the best but it does work! Still need tests though ...
4 years, 8 months ago (2016-04-18 21:04:34 UTC) #2
tandrii(chromium)
approach - sgtm. look into tests/git_cl_test.py and create a new test akin to git cl ...
4 years, 8 months ago (2016-04-18 21:11:58 UTC) #3
tandrii(chromium)
+comments https://codereview.chromium.org/1901733003/diff/1/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1901733003/diff/1/git_cl.py#newcode2524 git_cl.py:2524: def _add_codereview_select_options(parser): for consistency, please use this func ...
4 years, 8 months ago (2016-04-18 22:13:16 UTC) #4
martiniss
Ok, code is much simpler now. Still need to add more tests and make it ...
4 years, 8 months ago (2016-04-19 00:18:53 UTC) #5
tandrii(chromium)
https://codereview.chromium.org/1901733003/diff/20001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1901733003/diff/20001/git_cl.py#newcode3255 git_cl.py:3255: @subcommand.usage('<codereview url or issue id>') wrap in [] to ...
4 years, 8 months ago (2016-04-19 09:42:04 UTC) #6
martiniss
Ok, more fixes, should be good to go. PTAL https://codereview.chromium.org/1901733003/diff/20001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1901733003/diff/20001/git_cl.py#newcode3255 git_cl.py:3255: ...
4 years, 8 months ago (2016-04-25 22:33:06 UTC) #7
tandrii(chromium)
LGTM % comments https://codereview.chromium.org/1901733003/diff/40001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1901733003/diff/40001/git_cl.py#newcode3289 git_cl.py:3289: print >> sys.stdout, description.description well, but ...
4 years, 8 months ago (2016-04-26 10:34:20 UTC) #8
martiniss
On 2016/04/26 at 10:34:20, tandrii wrote: > LGTM % comments > > https://codereview.chromium.org/1901733003/diff/40001/git_cl.py > File ...
4 years, 8 months ago (2016-04-26 20:24:39 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1901733003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1901733003/60001
4 years, 8 months ago (2016-04-26 20:26:37 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001) as http://src.chromium.org/viewvc/chrome?view=rev&revision=300207
4 years, 8 months ago (2016-04-26 20:28:56 UTC) #16
tandrii(chromium)
On 2016/04/26 20:24:39, martiniss wrote: > On 2016/04/26 at 10:34:20, tandrii wrote: > > LGTM ...
4 years, 8 months ago (2016-04-26 21:22:04 UTC) #17
martiniss
4 years, 8 months ago (2016-04-26 21:44:50 UTC) #18
Message was sent while issue was closed.
On 2016/04/26 at 21:22:04, tandrii wrote:
> On 2016/04/26 20:24:39, martiniss wrote:
> > On 2016/04/26 at 10:34:20, tandrii wrote:
> > > LGTM % comments
> > > 
> > > https://codereview.chromium.org/1901733003/diff/40001/git_cl.py
> > > File git_cl.py (right):
> > > 
> > >
https://codereview.chromium.org/1901733003/diff/40001/git_cl.py#newcode3289
> > > git_cl.py:3289: print >> sys.stdout, description.description
> > > well, but print always goes to sys.stdout, so i find this redundant. Am I
> > wrong/have i missed something?
> > 
> > I did this so I could mock out the print, and capture it in my test, to make
> > sure it prints the correct thing.
> Well, yes, I saw your test. Yet my point is that 
> a) >> sys.stdout is redundant as in your test would still work. Proof:
https://codereview.chromium.org/1924643002 
> b) wasn't yet used in this codebase. So, why do that?

Oh whoops :( I tried that once and it didn't work, my bad.

Powered by Google App Engine
This is Rietveld 408576698