mercurial/dispatch.py
changeset 40651 1243295fcc3a
parent 40587 5542bc9125c9
child 40729 c93d046d4300
equal deleted inserted replaced
40650:ea84c2b286a2 40651:1243295fcc3a
   248             req.ui.flush()
   248             req.ui.flush()
   249             if req.ui.logblockedtimes:
   249             if req.ui.logblockedtimes:
   250                 req.ui._blockedtimes['command_duration'] = duration * 1000
   250                 req.ui._blockedtimes['command_duration'] = duration * 1000
   251                 req.ui.log('uiblocked', 'ui blocked ms',
   251                 req.ui.log('uiblocked', 'ui blocked ms',
   252                            **pycompat.strkwargs(req.ui._blockedtimes))
   252                            **pycompat.strkwargs(req.ui._blockedtimes))
   253             req.ui.log("commandfinish", "%s exited %d after %0.2f seconds\n",
   253             return_code = ret & 255
   254                        msg, ret & 255, duration,
   254             req.ui.log(
   255                        canonical_command=req.canonical_command)
   255                 "commandfinish",
       
   256                 "%s exited %d after %0.2f seconds\n",
       
   257                 msg,
       
   258                 return_code,
       
   259                 duration,
       
   260                 return_code=return_code,
       
   261                 duration=duration,
       
   262                 canonical_command=req.canonical_command,
       
   263             )
   256             try:
   264             try:
   257                 req._runexithandlers()
   265                 req._runexithandlers()
   258             except: # exiting, so no re-raises
   266             except: # exiting, so no re-raises
   259                 ret = ret or -1
   267                 ret = ret or -1
   260         return ret
   268         return ret