Show More
@@ -8,7 +8,7 b'' | |||||
8 | from node import hex, bin, nullid, nullrev, short |
|
8 | from node import hex, bin, nullid, nullrev, short | |
9 | from lock import release |
|
9 | from lock import release | |
10 | from i18n import _ |
|
10 | from i18n import _ | |
11 | import os, re, difflib, time, tempfile, errno |
|
11 | import os, re, difflib, time, tempfile, errno, shlex | |
12 | import sys |
|
12 | import sys | |
13 | import hg, scmutil, util, revlog, copies, error, bookmarks |
|
13 | import hg, scmutil, util, revlog, copies, error, bookmarks | |
14 | import patch, help, encoding, templatekw, discovery |
|
14 | import patch, help, encoding, templatekw, discovery | |
@@ -2247,7 +2247,7 b' def debuginstall(ui):' | |||||
2247 | # editor |
|
2247 | # editor | |
2248 | ui.status(_("checking commit editor...\n")) |
|
2248 | ui.status(_("checking commit editor...\n")) | |
2249 | editor = ui.geteditor() |
|
2249 | editor = ui.geteditor() | |
2250 |
cmdpath = util.findexe( |
|
2250 | cmdpath = util.findexe(shlex.split(editor)[0]) | |
2251 | if not cmdpath: |
|
2251 | if not cmdpath: | |
2252 | if editor == 'vi': |
|
2252 | if editor == 'vi': | |
2253 | ui.write(_(" No commit editor set and can't find vi in PATH\n")) |
|
2253 | ui.write(_(" No commit editor set and can't find vi in PATH\n")) |
General Comments 0
You need to be logged in to leave comments.
Login now