mercurial/hook.py
changeset 35366 056a9c8813aa
parent 34687 e79b6300d97c
child 36146 c4146cf4dd20
equal deleted inserted replaced
35365:7f410793c04d 35366:056a9c8813aa
    89 
    89 
    90     ui.note(_("calling hook %s: %s\n") % (hname, funcname))
    90     ui.note(_("calling hook %s: %s\n") % (hname, funcname))
    91     starttime = util.timer()
    91     starttime = util.timer()
    92 
    92 
    93     try:
    93     try:
    94         r = obj(ui=ui, repo=repo, hooktype=htype, **args)
    94         r = obj(ui=ui, repo=repo, hooktype=htype, **pycompat.strkwargs(args))
    95     except Exception as exc:
    95     except Exception as exc:
    96         if isinstance(exc, error.Abort):
    96         if isinstance(exc, error.Abort):
    97             ui.warn(_('error: %s hook failed: %s\n') %
    97             ui.warn(_('error: %s hook failed: %s\n') %
    98                          (hname, exc.args[0]))
    98                          (hname, exc.args[0]))
    99         else:
    99         else: