changeset 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 4f6db0233606
children f9e129684b5d
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Sun Dec 10 02:11:02 2006 -0600
+++ b/mercurial/commands.py	Sun Dec 10 12:46:47 2006 +0100
@@ -949,7 +949,7 @@
     if not cmdpath:
         cmdpath = util.find_in_path(editor.split()[0], path)
     if not cmdpath:
-        if cmd == 'vi':
+        if editor == 'vi':
             ui.write(_(" No commit editor set and can't find vi in PATH\n"))
             ui.write(_(" (specify a commit editor in your .hgrc file)\n"))
         else: