# HG changeset patch
# User Simon Farnsworth <simonfar@fb.com>
# Date 2017-03-06 11:09:15
# Node ID a48c6ac5c13ad33bfdf5dee56b680da4c4cedfa5
# Parent  84e8a68342233039e56dcde08f066a86c940012b

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.

diff --git a/mercurial/hook.py b/mercurial/hook.py
--- a/mercurial/hook.py
+++ b/mercurial/hook.py
@@ -142,7 +142,7 @@ def _exthook(ui, repo, name, cmd, args, 
         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',