equal
deleted
inserted
replaced
152 |
152 |
153 duration = util.timer() - starttime |
153 duration = util.timer() - starttime |
154 ui.log('exthook', 'exthook-%s: %s finished in %0.2f seconds\n', |
154 ui.log('exthook', 'exthook-%s: %s finished in %0.2f seconds\n', |
155 name, cmd, duration) |
155 name, cmd, duration) |
156 if r: |
156 if r: |
157 desc, r = procutil.explainexit(r) |
157 desc = procutil.explainexit(r) |
158 if throw: |
158 if throw: |
159 raise error.HookAbort(_('%s hook %s') % (name, desc)) |
159 raise error.HookAbort(_('%s hook %s') % (name, desc)) |
160 ui.warn(_('warning: %s hook %s\n') % (name, desc)) |
160 ui.warn(_('warning: %s hook %s\n') % (name, desc)) |
161 return r |
161 return r |
162 |
162 |