changeset 31199:3a03264de3eb

dispatch: set a blockedtag when running an external alias
author Simon Farnsworth <simonfar@fb.com>
date Mon, 06 Mar 2017 03:25:44 -0800
parents 71a6723c0029
children 426b3d1e82d0
files mercurial/dispatch.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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