Comments
Patch
@@ -223,9 +223,9 @@ def runhooks(ui, repo, name, hooks, thro
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):
@@ -904,7 +904,7 @@ Non-blocking hook
> txnclose.testing=echo txnclose hook called
> EOF
$ touch a && hg commit -Aqm a
- warning: untrusted hook txnclose not executed
+ warning: untrusted hook txnclose.testing not executed
$ hg log
changeset: 0:3903775176ed
tag: tip
@@ -923,7 +923,7 @@ Non-blocking hook
$ touch b && hg commit -Aqm a
transaction abort!
rollback completed
- abort: untrusted hook pretxnclose not executed
+ abort: untrusted hook pretxnclose.testing not executed
(see 'hg help config.trusted')
[255]
$ hg log