mercurial/hook.py
changeset 31205 a48c6ac5c13a
parent 30975 22fbca1d11ed
child 31742 f243b7fbeba5
equal deleted inserted replaced
31204:84e8a6834223 31205:a48c6ac5c13a
   140 
   140 
   141     if repo:
   141     if repo:
   142         cwd = repo.root
   142         cwd = repo.root
   143     else:
   143     else:
   144         cwd = pycompat.getcwd()
   144         cwd = pycompat.getcwd()
   145     r = ui.system(cmd, environ=env, cwd=cwd)
   145     r = ui.system(cmd, environ=env, cwd=cwd, blockedtag='exthook-%s' % (name,))
   146 
   146 
   147     duration = util.timer() - starttime
   147     duration = util.timer() - starttime
   148     ui.log('exthook', 'exthook-%s: %s finished in %0.2f seconds\n',
   148     ui.log('exthook', 'exthook-%s: %s finished in %0.2f seconds\n',
   149            name, cmd, duration)
   149            name, cmd, duration)
   150     if r:
   150     if r: