diff -r 548316560a05 -r 94a1ff16f362 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Sun Feb 18 22:13:25 2018 +0900 +++ b/mercurial/debugcommands.py Sat Feb 17 13:13:04 2018 +0900 @@ -1240,7 +1240,7 @@ # editor editor = ui.geteditor() editor = util.expandpath(editor) - editorbin = pycompat.shlexsplit(editor)[0] + editorbin = pycompat.shlexsplit(editor, posix=not pycompat.iswindows)[0] fm.write('editor', _("checking commit editor... (%s)\n"), editorbin) cmdpath = util.findexe(editorbin) fm.condwrite(not cmdpath and editor == 'vi', 'vinotfound',