Mercurial > hg
diff mercurial/dispatch.py @ 18932:7b4b9e8ea12e
dispatch: catch InterventionRequired and print the message with no prefix
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Fri, 08 Feb 2013 16:28:24 -0600 |
parents | 6aca4d1c744e |
children | e5d9441ec281 |
line wrap: on
line diff
--- a/mercurial/dispatch.py Fri Feb 08 14:26:03 2013 -0600 +++ b/mercurial/dispatch.py Fri Feb 08 16:28:24 2013 -0600 @@ -151,6 +151,8 @@ commands.help_(ui, inst.args[0], unknowncmd=True) except error.UnknownCommand: commands.help_(ui, 'shortlist') + except error.InterventionRequired, inst: + ui.warn("%s\n" % inst) except util.Abort, inst: ui.warn(_("abort: %s\n") % inst) if inst.hint: