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

Issue 6680019: Reland - Support msysgit in gcl and git-cl... (Closed)

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

Description

Reland - Support msysgit in gcl and git-cl An explicit msysgit check is needed since it requires the usage of 'env' to open the editor. BUG=70550, 70548 TEST=Win,Linux Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=77946

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

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

Messages

Total messages: 10 (0 generated)
Mohamed Mansour
This change ensures "env" only present in msysgit. Verified in: - Windows XP (new VM) ...
9 years, 9 months ago (2011-03-12 18:21:34 UTC) #1
M-A Ruel
http://codereview.chromium.org/6680019/diff/1/gcl.py File gcl.py (right): http://codereview.chromium.org/6680019/diff/1/gcl.py#newcode1071 gcl.py:1071: msysgit_found = os.environ['PATH'].find('mingw\\bin') != -1 if sys.platform == 'win32' ...
9 years, 9 months ago (2011-03-12 18:27:28 UTC) #2
Mohamed Mansour
http://codereview.chromium.org/6680019/diff/1/gcl.py File gcl.py (right): http://codereview.chromium.org/6680019/diff/1/gcl.py#newcode1071 gcl.py:1071: msysgit_found = os.environ['PATH'].find('mingw\\bin') != -1 On 2011/03/12 18:27:28, Marc-Antoine ...
9 years, 9 months ago (2011-03-12 18:36:57 UTC) #3
M-A Ruel
lgtm http://codereview.chromium.org/6680019/diff/3002/gcl.py File gcl.py (right): http://codereview.chromium.org/6680019/diff/3002/gcl.py#newcode1067 gcl.py:1067: # Msysgit requires the usage of 'env' to ...
9 years, 9 months ago (2011-03-12 18:53:54 UTC) #4
TVL
http://codereview.chromium.org/6680019/diff/1005/git_cl/git_cl.py File git_cl/git_cl.py (right): http://codereview.chromium.org/6680019/diff/1005/git_cl/git_cl.py#newcode720 git_cl/git_cl.py:720: subprocess.check_call(cmd) this has broken macosx and probably link when ...
9 years, 9 months ago (2011-03-14 13:31:54 UTC) #5
TVL
http://codereview.chromium.org/6680019/diff/1005/git_cl/git_cl.py File git_cl/git_cl.py (right): http://codereview.chromium.org/6680019/diff/1005/git_cl/git_cl.py#newcode720 git_cl/git_cl.py:720: subprocess.check_call(cmd) On 2011/03/14 13:31:54, TVL wrote: > this has ...
9 years, 9 months ago (2011-03-14 13:42:16 UTC) #6
Mohamed Mansour
http://codereview.chromium.org/6680019/diff/1005/git_cl/git_cl.py File git_cl/git_cl.py (right): http://codereview.chromium.org/6680019/diff/1005/git_cl/git_cl.py#newcode720 git_cl/git_cl.py:720: subprocess.check_call(cmd) Hi TVL, would changing cmd = [editor, filename] ...
9 years, 9 months ago (2011-03-14 14:01:33 UTC) #7
M-A Ruel
Main issue is when there is quotes in EDITOR variable content. Better to keep shell=True. ...
9 years, 9 months ago (2011-03-14 14:04:53 UTC) #8
Mohamed Mansour
I don't quite understand how "shell=True" worked before. For example: Opens up VIM with the ...
9 years, 9 months ago (2011-03-14 14:16:03 UTC) #9
TVL
9 years, 9 months ago (2011-03-14 14:38:40 UTC) #10
Was the script also sticking 'env' in as the first argument so it bounced
though that on the invoke?  ie: ['env', 'vim +', '/home/m0/foo'].  The code
below is probably failing because '+' trips up things in shell?

TVL


On Mon, Mar 14, 2011 at 10:15 AM, Mohamed Mansour <mhm@chromium.org> wrote:

> I don't quite understand how "shell=True" worked before. For example:
>
> Opens up VIM with the file contents of "foo" and places the cursor at the
> end of the document.
>
>> subprocess.check_call( ['vim', '+', '/home/m0/foo'])
>
>
> While adding shell=True doesn't even load the file contents, just an empty
> editor.
>
>> subprocess.check_call(['vim', '+', '/home/m0/foo'], shell=True)
>
>
> That is not the effect that we needed. I verified if people set editor to
> be "vim +" It needs to split it first. Unfortunately I am at work now so I
> cannot submit any change now :( If any one of you can verify Mac and submit
> a CL then I can review otherwise I have to wait till I come back home.
>
> Sorry :(
>
>
>
>
> Kind regards,
> Mohamed Mansour
>
>
>
> On Mon, Mar 14, 2011 at 10:04 AM, Marc-Antoine Ruel
<maruel@chromium.org>wrote:
>
>> Main issue is when there is quotes in EDITOR variable content. Better to
>> keep shell=True.
>> Le 14 mars 2011 10:01, <mhm@chromium.org> a écrit :
>>
>> >
>> > http://codereview.chromium.org/6680019/diff/1005/git_cl/git_cl.py
>> > File git_cl/git_cl.py (right):
>> >
>> >
>> http://codereview.chromium.org/6680019/diff/1005/git_cl/git_cl.py#newcode720
>> > git_cl/git_cl.py:720: subprocess.check_call(cmd)
>> > Hi TVL, would changing cmd = [editor, filename] to "cmd = editor.split()
>> > + [filename]" work ?
>> >
>> > http://codereview.chromium.org/6680019/
>>
>
>

Powered by Google App Engine
This is Rietveld 408576698