mercurial/commands.py
changeset 14271 4030630fb59c
parent 14260 00a881581400
child 14279 b039b667515d
equal deleted inserted replaced
14268:a55a0045704c 14271:4030630fb59c
  1646         problems += 1
  1646         problems += 1
  1647 
  1647 
  1648     # editor
  1648     # editor
  1649     ui.status(_("Checking commit editor...\n"))
  1649     ui.status(_("Checking commit editor...\n"))
  1650     editor = ui.geteditor()
  1650     editor = ui.geteditor()
  1651     cmdpath = util.find_exe(editor) or util.find_exe(editor.split()[0])
  1651     cmdpath = util.findexe(editor) or util.findexe(editor.split()[0])
  1652     if not cmdpath:
  1652     if not cmdpath:
  1653         if editor == 'vi':
  1653         if editor == 'vi':
  1654             ui.write(_(" No commit editor set and can't find vi in PATH\n"))
  1654             ui.write(_(" No commit editor set and can't find vi in PATH\n"))
  1655             ui.write(_(" (specify a commit editor in your configuration"
  1655             ui.write(_(" (specify a commit editor in your configuration"
  1656                        " file)\n"))
  1656                        " file)\n"))