diff mercurial/help.py @ 22160:645457f73aa6

alias: keep error message in "badalias" so that help can see it Upcoming patches will - change help_() to get badalias message without executing cmdalias() - raise Abort on bad alias
author Yuya Nishihara <yuya@tcha.org>
date Sat, 17 May 2014 21:13:31 +0900
parents 9a299c39de01
children 7ada34676db8
line wrap: on
line diff
--- a/mercurial/help.py	Sat May 17 20:47:31 2014 +0900
+++ b/mercurial/help.py	Sat May 17 21:13:31 2014 +0900
@@ -235,7 +235,7 @@
         rst = []
 
         # check if it's an invalid alias and display its error if it is
-        if getattr(entry[0], 'badalias', False):
+        if getattr(entry[0], 'badalias', None):
             if not unknowncmd:
                 ui.pushbuffer()
                 entry[0](ui)