# HG changeset patch # User timeless # Date 1450860772 0 # Node ID 707d66afce212d90334c95552a51dca63cf52e9d # Parent dcbba68e076fa0115b7df0777e28c042e6b3ea52 error: make InterventionRequired take a hint diff -r dcbba68e076f -r 707d66afce21 mercurial/dispatch.py --- a/mercurial/dispatch.py Thu Dec 24 20:41:17 2015 +0000 +++ b/mercurial/dispatch.py Wed Dec 23 08:52:52 2015 +0000 @@ -270,6 +270,8 @@ commands.help_(ui, 'shortlist') except error.InterventionRequired as inst: ui.warn("%s\n" % inst) + if inst.hint: + ui.warn(_("(%s)\n") % inst.hint) return 1 except error.Abort as inst: ui.warn(_("abort: %s\n") % inst) diff -r dcbba68e076f -r 707d66afce21 mercurial/error.py --- a/mercurial/error.py Thu Dec 24 20:41:17 2015 +0000 +++ b/mercurial/error.py Wed Dec 23 08:52:52 2015 +0000 @@ -50,7 +50,7 @@ class CommandError(Exception): """Exception raised on errors in parsing the command line.""" -class InterventionRequired(Exception): +class InterventionRequired(HintException): """Exception raised when a command requires human intervention.""" class Abort(HintException):