debuginstall: fix a copy/paste error
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Sun, 10 Dec 2006 12:46:47 +0100
changeset 3855 b9cdd6f2aa43
parent 3854 4f6db0233606
child 3856 f9e129684b5d
debuginstall: fix a copy/paste error
mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -949,7 +949,7 @@ def debuginstall(ui):
     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: