Details
Details
- Reviewers
durin42 - Group Reviewers
hg-reviewers - Commits
- rHG08f28f58f863: py3: handle keyword arguments correctly in dispatch.py
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
durin42 |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
if inst.errno != errno.EPIPE: | if inst.errno != errno.EPIPE: | ||||
raise | raise | ||||
ret = -1 | ret = -1 | ||||
finally: | finally: | ||||
duration = util.timer() - starttime | duration = util.timer() - starttime | ||||
req.ui.flush() | req.ui.flush() | ||||
if req.ui.logblockedtimes: | if req.ui.logblockedtimes: | ||||
req.ui._blockedtimes['command_duration'] = duration * 1000 | req.ui._blockedtimes['command_duration'] = duration * 1000 | ||||
req.ui.log('uiblocked', 'ui blocked ms', **req.ui._blockedtimes) | req.ui.log('uiblocked', 'ui blocked ms', | ||||
**pycompat.strkwargs(req.ui._blockedtimes)) | |||||
req.ui.log("commandfinish", "%s exited %d after %0.2f seconds\n", | req.ui.log("commandfinish", "%s exited %d after %0.2f seconds\n", | ||||
msg, ret or 0, duration) | msg, ret or 0, duration) | ||||
try: | try: | ||||
req._runexithandlers() | req._runexithandlers() | ||||
except: # exiting, so no re-raises | except: # exiting, so no re-raises | ||||
ret = ret or -1 | ret = ret or -1 | ||||
return ret | return ret | ||||