mercurial/hook.py
changeset 31748 f610c3220eec
parent 31747 f243b7fbeba5
child 31749 5678496659e9
--- 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):