dispatch: set a blockedtag when running an external alias
authorSimon Farnsworth <simonfar@fb.com>
Mon, 06 Mar 2017 03:25:44 -0800
changeset 31209 3a03264de3eb
parent 31208 71a6723c0029
child 31210 426b3d1e82d0
dispatch: set a blockedtag when running an external alias
mercurial/dispatch.py
--- a/mercurial/dispatch.py	Mon Mar 06 03:25:29 2017 -0800
+++ b/mercurial/dispatch.py	Mon Mar 06 03:25:44 2017 -0800
@@ -354,7 +354,8 @@
                         return ''
                 cmd = re.sub(r'\$(\d+|\$)', _checkvar, self.definition[1:])
                 cmd = aliasinterpolate(self.name, args, cmd)
-                return ui.system(cmd, environ=env)
+                return ui.system(cmd, environ=env,
+                                 blockedtag='alias_%s' % self.name)
             self.fn = fn
             return