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

Issue 6686027: Use TERM to distinguish between console and msysgit.... (Closed)

Created:
9 years, 9 months ago by Mohamed Mansour
Modified:
9 years, 6 months ago
Reviewers:
jam, M-A Ruel
CC:
chromium-reviews
Visibility:
Public.

Description

Use TERM to distinguish between console and msysgit. It is cleaner this way since in Win32 console, the value is always "dumb" while in msysgit it is always "msys" The user shouldn't change the value of $TERM in msysgit otherwise their whole copy of msysgit will be flaky. BUG=70548 TEST=check $TERM in windows Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=77954

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -6 lines) Patch
M gcl.py View 1 chunk +2 lines, -3 lines 1 comment Download
M git_cl/git_cl.py View 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Mohamed Mansour
I think this approach is cleaner. I was playing around the terminal to see why ...
9 years, 9 months ago (2011-03-12 21:00:51 UTC) #1
M-A Ruel
lgtm
9 years, 9 months ago (2011-03-12 21:09:52 UTC) #2
jam
This broke gcl on Windows again. Please test these changes carefully as these tools are ...
9 years, 9 months ago (2011-03-13 21:14:38 UTC) #3
M-A Ruel
9 years, 9 months ago (2011-03-13 21:16:17 UTC) #4
ltgm

http://codereview.chromium.org/6686027/diff/1/gcl.py
File gcl.py (right):

http://codereview.chromium.org/6686027/diff/1/gcl.py#newcode1068
gcl.py:1068: if sys.platform == 'win32' and os.environ['TERM'] == 'msys':
os.environ.get('TERM') would have worked but it's fine.

Powered by Google App Engine
This is Rietveld 408576698