dispatch: use flag cmdalias.shell for detecting shell aliases
authorRoman Sokolov <sokolov.r.v@gmail.com>
Thu, 10 Feb 2011 15:41:34 +0300
changeset 13394 30e103dacd5f
parent 13393 d38d500deb08
child 13395 104c9ed93fc5
dispatch: use flag cmdalias.shell for detecting shell aliases
mercurial/dispatch.py
--- a/mercurial/dispatch.py	Fri Feb 11 03:46:28 2011 +0300
+++ b/mercurial/dispatch.py	Thu Feb 10 15:41:34 2011 +0300
@@ -295,7 +295,7 @@
             ui.debug("alias '%s' shadows command '%s'\n" %
                      (self.name, self.cmdname))
 
-        if self.definition.startswith('!'):
+        if hasattr(self, 'shell'):
             return self.fn(ui, *args, **opts)
         else:
             try: