Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
22159:db7921812f56 | 22160:645457f73aa6 |
---|---|
233 return rst | 233 return rst |
234 | 234 |
235 rst = [] | 235 rst = [] |
236 | 236 |
237 # check if it's an invalid alias and display its error if it is | 237 # check if it's an invalid alias and display its error if it is |
238 if getattr(entry[0], 'badalias', False): | 238 if getattr(entry[0], 'badalias', None): |
239 if not unknowncmd: | 239 if not unknowncmd: |
240 ui.pushbuffer() | 240 ui.pushbuffer() |
241 entry[0](ui) | 241 entry[0](ui) |
242 rst.append(ui.popbuffer()) | 242 rst.append(ui.popbuffer()) |
243 return rst | 243 return rst |