mercurial/commands.py
branchstable
changeset 24891 be4915009b09
parent 24873 12908cdbab73
child 24906 a4ee6f774f14
equal deleted inserted replaced
24890:cba84b06b702 24891:be4915009b09
  2368         problems += 1
  2368         problems += 1
  2369 
  2369 
  2370     # editor
  2370     # editor
  2371     ui.status(_("checking commit editor...\n"))
  2371     ui.status(_("checking commit editor...\n"))
  2372     editor = ui.geteditor()
  2372     editor = ui.geteditor()
       
  2373     editor = util.expandpath(editor)
  2373     cmdpath = util.findexe(shlex.split(editor)[0])
  2374     cmdpath = util.findexe(shlex.split(editor)[0])
  2374     if not cmdpath:
  2375     if not cmdpath:
  2375         if editor == 'vi':
  2376         if editor == 'vi':
  2376             ui.write(_(" No commit editor set and can't find vi in PATH\n"))
  2377             ui.write(_(" No commit editor set and can't find vi in PATH\n"))
  2377             ui.write(_(" (specify a commit editor in your configuration"
  2378             ui.write(_(" (specify a commit editor in your configuration"