comparison mercurial/commands.py @ 3855:b9cdd6f2aa43

debuginstall: fix a copy/paste error
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sun, 10 Dec 2006 12:46:47 +0100
parents 8cbf060f637e
children f6f16f871049
comparison
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"))