diff -r a55a0045704c -r 4030630fb59c mercurial/commands.py --- a/mercurial/commands.py Sun May 08 16:16:41 2011 -0500 +++ b/mercurial/commands.py Sun May 08 20:35:46 2011 +0200 @@ -1648,7 +1648,7 @@ # editor ui.status(_("Checking commit editor...\n")) editor = ui.geteditor() - cmdpath = util.find_exe(editor) or util.find_exe(editor.split()[0]) + cmdpath = util.findexe(editor) or util.findexe(editor.split()[0]) if not cmdpath: if editor == 'vi': ui.write(_(" No commit editor set and can't find vi in PATH\n"))