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

Issue 14854003: Make git-cl more accurately imitate git's editor selection process, and respect $VISUAL. (Closed)

Created:
7 years, 7 months ago by jbroman
Modified:
7 years, 7 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Visibility:
Public.

Description

Make git-cl more accurately imitate git's editor selection process, and respect $VISUAL. It is somewhat surprising when git-cl, which acts as a git subcommand, launches a different editor. In particular, git has a config option (core.editor) which specifies the editor that should be used. Since we already respect $GIT_EDITOR, it makes sense for git-cl to respect core.editor and $VISUAL as well. R=maruel@chromium.org BUG=237504 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=198101

Patch Set 1 #

Total comments: 3

Patch Set 2 : Remove dumb terminal detection #

Patch Set 3 : added to README.git-cl #

Patch Set 4 : Move comment to gclient_utils.py and clarify. #

Patch Set 5 : Rebase #

Patch Set 6 : Make tests use $GIT_EDITOR instead of $EDITOR (previously they failed for me, as $EDITOR was overriā€¦ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -19 lines) Patch
M gclient_utils.py View 1 2 3 3 chunks +24 lines, -5 lines 0 comments Download
M git_cl.py View 1 2 3 4 3 chunks +9 lines, -1 line 0 comments Download
M tests/abandon.sh View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tests/basic.sh View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tests/git_cl_test.py View 1 2 3 4 4 chunks +15 lines, -3 lines 0 comments Download
M tests/owners.sh View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tests/patch.sh View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tests/push-basic.sh View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tests/rename.sh View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tests/save-description-on-failure.sh View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tests/submit-from-new-dir.sh View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tests/upload-local-tracking-branch.sh View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tests/upload-stale.sh View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
jbroman
I ran into this yesterday (the editor I have as $EDITOR is not the editor ...
7 years, 7 months ago (2013-05-02 14:03:59 UTC) #1
M-A Ruel
https://codereview.chromium.org/14854003/diff/1/gclient_utils.py File gclient_utils.py (right): https://codereview.chromium.org/14854003/diff/1/gclient_utils.py#newcode695 gclient_utils.py:695: editor = None You assume we're going to call ...
7 years, 7 months ago (2013-05-02 14:13:48 UTC) #2
jbroman
https://codereview.chromium.org/14854003/diff/1/gclient_utils.py File gclient_utils.py (right): https://codereview.chromium.org/14854003/diff/1/gclient_utils.py#newcode695 gclient_utils.py:695: editor = None On 2013/05/02 14:13:48, Marc-Antoine Ruel wrote: ...
7 years, 7 months ago (2013-05-02 14:27:30 UTC) #3
M-A Ruel
https://codereview.chromium.org/14854003/diff/1/gclient_utils.py File gclient_utils.py (right): https://codereview.chromium.org/14854003/diff/1/gclient_utils.py#newcode695 gclient_utils.py:695: editor = None On 2013/05/02 14:27:30, jbroman wrote: > ...
7 years, 7 months ago (2013-05-02 14:35:16 UTC) #4
jbroman
Added to README.git-cl; let me know where else this should be documented. I have not ...
7 years, 7 months ago (2013-05-02 15:02:54 UTC) #5
M-A Ruel
On 2013/05/02 15:02:54, jbroman wrote: > Added to README.git-cl; let me know where else this ...
7 years, 7 months ago (2013-05-02 15:07:15 UTC) #6
jbroman
7 years, 7 months ago (2013-05-02 16:12:04 UTC) #7
M-A Ruel
lgtm
7 years, 7 months ago (2013-05-02 21:27:44 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbroman@chromium.org/14854003/3003
7 years, 7 months ago (2013-05-02 21:31:30 UTC) #9
commit-bot: I haz the power
Failed to apply patch for depot_tools/tests/git_cl_test.py: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 7 months ago (2013-05-02 21:31:32 UTC) #10
jbroman
Commit failed; needed to rebase. While running presubmit tests on my rebased version, they failed ...
7 years, 7 months ago (2013-05-03 12:44:26 UTC) #11
M-A Ruel
lgtm
7 years, 7 months ago (2013-05-03 12:57:34 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbroman@chromium.org/14854003/18002
7 years, 7 months ago (2013-05-03 13:18:34 UTC) #13
commit-bot: I haz the power
7 years, 7 months ago (2013-05-03 13:20:15 UTC) #14
Message was sent while issue was closed.
Change committed as 198101

Powered by Google App Engine
This is Rietveld 408576698