mercurial/commands.py
changeset 3855 b9cdd6f2aa43
parent 3848 8cbf060f637e
child 3857 f6f16f871049
--- 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: