hook: give exthooks tags for blocking time
authorSimon Farnsworth <simonfar@fb.com>
Mon, 06 Mar 2017 03:09:15 -0800
changeset 31215 a48c6ac5c13a
parent 31214 84e8a6834223
child 31216 49e5491ed9bd
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.
mercurial/hook.py
--- a/mercurial/hook.py	Mon Mar 06 03:19:40 2017 -0800
+++ b/mercurial/hook.py	Mon Mar 06 03:09:15 2017 -0800
@@ -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',