mercurial/commands.py
changeset 3855 b9cdd6f2aa43
parent 3848 8cbf060f637e
child 3857 f6f16f871049
equal deleted inserted replaced
3854:4f6db0233606 3855:b9cdd6f2aa43
   947               os.environ.get("EDITOR", "vi"))
   947               os.environ.get("EDITOR", "vi"))
   948     cmdpath = util.find_in_path(editor, path)
   948     cmdpath = util.find_in_path(editor, path)
   949     if not cmdpath:
   949     if not cmdpath:
   950         cmdpath = util.find_in_path(editor.split()[0], path)
   950         cmdpath = util.find_in_path(editor.split()[0], path)
   951     if not cmdpath:
   951     if not cmdpath:
   952         if cmd == 'vi':
   952         if editor == 'vi':
   953             ui.write(_(" No commit editor set and can't find vi in PATH\n"))
   953             ui.write(_(" No commit editor set and can't find vi in PATH\n"))
   954             ui.write(_(" (specify a commit editor in your .hgrc file)\n"))
   954             ui.write(_(" (specify a commit editor in your .hgrc file)\n"))
   955         else:
   955         else:
   956             ui.write(_(" Can't find editor '%s' in PATH\n") % editor)
   956             ui.write(_(" Can't find editor '%s' in PATH\n") % editor)
   957             ui.write(_(" (specify a commit editor in your .hgrc file)\n"))
   957             ui.write(_(" (specify a commit editor in your .hgrc file)\n"))