changeset 13394:30e103dacd5f

dispatch: use flag cmdalias.shell for detecting shell aliases
author Roman Sokolov <sokolov.r.v@gmail.com>
date Thu, 10 Feb 2011 15:41:34 +0300
parents d38d500deb08
children 104c9ed93fc5
files mercurial/dispatch.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: