diff -r f243b7fbeba5 -r f610c3220eec mercurial/hook.py --- a/mercurial/hook.py Fri Mar 31 10:59:37 2017 +0200 +++ b/mercurial/hook.py Fri Mar 31 11:02:05 2017 +0200 @@ -223,9 +223,9 @@ if cmd is _fromuntrusted: if throw: raise error.HookAbort( - _('untrusted hook %s not executed') % name, + _('untrusted hook %s not executed') % hname, hint = _("see 'hg help config.trusted'")) - ui.warn(_('warning: untrusted hook %s not executed\n') % name) + ui.warn(_('warning: untrusted hook %s not executed\n') % hname) r = 1 raised = False elif callable(cmd):