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

Issue 1851283002: Fix coloring madness in depot_tools. (Closed)

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

Description

Fix coloring madness in depot_tools. 'setup_color' now contains logic to correctly detect: * cmd * cmd pipe * msys bash * msys pipe * cmd running inside msys bash (git-command) * cmd pipe running inside msys bash (git-command > outfile) R=brucedawson@chromium.org, dnj@chromium.org BUG=600049 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=299682

Patch Set 1 #

Patch Set 2 : Work on non-windows #

Total comments: 14

Patch Set 3 : Add annotation comments #

Total comments: 4

Patch Set 4 : Improve logic a bit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -16 lines) Patch
M depot-tools-auth.py View 2 chunks +2 lines, -3 lines 0 comments Download
M gclient.py View 3 chunks +3 lines, -3 lines 0 comments Download
M git_cl.py View 4 chunks +4 lines, -3 lines 0 comments Download
M git_common.py View 3 chunks +3 lines, -2 lines 0 comments Download
M git_map_branches.py View 2 chunks +6 lines, -5 lines 0 comments Download
A setup_color.py View 1 2 3 1 chunk +94 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (3 generated)
iannucci
4 years, 8 months ago (2016-04-02 02:59:41 UTC) #1
iannucci
On 2016/04/02 at 02:59:41, iannucci wrote: > (not quite ready, need to test on linux/mac, ...
4 years, 8 months ago (2016-04-02 03:00:29 UTC) #2
iannucci
OK, PTAL.
4 years, 8 months ago (2016-04-02 05:42:12 UTC) #3
iannucci
https://chromiumcodereview.appspot.com/1851283002/diff/20001/setup_color.py File setup_color.py (right): https://chromiumcodereview.appspot.com/1851283002/diff/20001/setup_color.py#newcode18 setup_color.py:18: OUT_TYPE = 'console' yay, we detected it via the ...
4 years, 8 months ago (2016-04-02 06:08:21 UTC) #4
iannucci
(interestingly, this is also why running `python` from inside the git bash shell doesn't automatically ...
4 years, 8 months ago (2016-04-02 06:11:23 UTC) #5
iannucci
On 2016/04/02 at 06:11:23, iannucci wrote: > (interestingly, this is also why running `python` from ...
4 years, 8 months ago (2016-04-02 07:12:00 UTC) #6
brucedawson
Just some quick weekend comments. https://chromiumcodereview.appspot.com/1851283002/diff/20001/git_common.py File git_common.py (right): https://chromiumcodereview.appspot.com/1851283002/diff/20001/git_common.py#newcode285 git_common.py:285: def blame(filename, revision=None, porcelain=False, ...
4 years, 8 months ago (2016-04-02 20:42:50 UTC) #7
iannucci
PTAL https://chromiumcodereview.appspot.com/1851283002/diff/20001/git_common.py File git_common.py (right): https://chromiumcodereview.appspot.com/1851283002/diff/20001/git_common.py#newcode285 git_common.py:285: def blame(filename, revision=None, porcelain=False, *_args): On 2016/04/02 at ...
4 years, 8 months ago (2016-04-02 23:45:35 UTC) #8
iannucci
PTAL
4 years, 8 months ago (2016-04-02 23:45:35 UTC) #9
dnj
Thanks for the comments. lgtm w/ a few comments of my own. https://chromiumcodereview.appspot.com/1851283002/diff/40001/setup_color.py File setup_color.py ...
4 years, 8 months ago (2016-04-03 00:57:45 UTC) #10
brucedawson
I did some basic tests (git cl status to console, file, and pipe) and everything ...
4 years, 8 months ago (2016-04-04 17:16:19 UTC) #11
iannucci
OK, PTAL. I addressed comments and am going to re-test now. Bruce if you wouldn't ...
4 years, 8 months ago (2016-04-04 20:24:59 UTC) #12
iannucci
OK, retested on win10 + os x and it works.
4 years, 8 months ago (2016-04-04 20:29:37 UTC) #13
brucedawson
On 2016/04/04 20:29:37, iannucci wrote: > OK, retested on win10 + os x and it ...
4 years, 8 months ago (2016-04-04 21:30:47 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1851283002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1851283002/60001
4 years, 8 months ago (2016-04-04 21:32:06 UTC) #17
commit-bot: I haz the power
4 years, 8 months ago (2016-04-04 21:34:41 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=299682

Powered by Google App Engine
This is Rietveld 408576698