# HG changeset patch # User Benoit Boissinot # Date 1165751207 -3600 # Node ID b9cdd6f2aa435dfcc221302cb23a7449df519e9c # Parent 4f6db02336068478eb1e4c9915dc38b41daee5d8 debuginstall: fix a copy/paste error diff --git a/mercurial/commands.py b/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: