equal
deleted
inserted
replaced
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")) |