equal
deleted
inserted
replaced
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: |