Mercurial > public > mercurial-scm > hg
comparison mercurial/dispatch.py @ 35354:08f28f58f863
py3: handle keyword arguments correctly in dispatch.py
Differential Revision: https://phab.mercurial-scm.org/D1630
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 10 Dec 2017 04:46:13 +0530 |
parents | 7ce0ba3a1c32 |
children | 7906354cbc68 |
comparison
equal
deleted
inserted
replaced
35353:8384553b1684 | 35354:08f28f58f863 |
---|---|
198 finally: | 198 finally: |
199 duration = util.timer() - starttime | 199 duration = util.timer() - starttime |
200 req.ui.flush() | 200 req.ui.flush() |
201 if req.ui.logblockedtimes: | 201 if req.ui.logblockedtimes: |
202 req.ui._blockedtimes['command_duration'] = duration * 1000 | 202 req.ui._blockedtimes['command_duration'] = duration * 1000 |
203 req.ui.log('uiblocked', 'ui blocked ms', **req.ui._blockedtimes) | 203 req.ui.log('uiblocked', 'ui blocked ms', |
204 **pycompat.strkwargs(req.ui._blockedtimes)) | |
204 req.ui.log("commandfinish", "%s exited %d after %0.2f seconds\n", | 205 req.ui.log("commandfinish", "%s exited %d after %0.2f seconds\n", |
205 msg, ret or 0, duration) | 206 msg, ret or 0, duration) |
206 try: | 207 try: |
207 req._runexithandlers() | 208 req._runexithandlers() |
208 except: # exiting, so no re-raises | 209 except: # exiting, so no re-raises |