Mercurial > hg > mercurial-source
changeset 31984:a48c6ac5c13a
hook: give exthooks tags for blocking time
The ui.system autogenerated tag isn't really useful - as they're named, let's
use the name the user gave us.
author | Simon Farnsworth <simonfar@fb.com> |
---|---|
date | Mon, 06 Mar 2017 03:09:15 -0800 (2017-03-06) |
parents | 84e8a6834223 |
children | 49e5491ed9bd |
files | mercurial/hook.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hook.py +++ b/mercurial/hook.py @@ -142,7 +142,7 @@ cwd = repo.root else: cwd = pycompat.getcwd() - r = ui.system(cmd, environ=env, cwd=cwd) + r = ui.system(cmd, environ=env, cwd=cwd, blockedtag='exthook-%s' % (name,)) duration = util.timer() - starttime ui.log('exthook', 'exthook-%s: %s finished in %0.2f seconds\n',