mercurial/dispatch.py
changeset 11524 24965bb270b7
parent 11495 6ee107782018
child 11556 c20c2c4c0c63
--- a/mercurial/dispatch.py	Wed Jul 07 14:29:40 2010 +0200
+++ b/mercurial/dispatch.py	Wed Jul 07 18:49:43 2010 -0400
@@ -208,6 +208,13 @@
 
             return
 
+        if self.definition.startswith('!'):
+            def fn(ui, *args):
+                cmd = '%s %s' % (self.definition[1:], ' '.join(args))
+                return util.system(cmd)
+            self.fn = fn
+            return
+
         args = shlex.split(self.definition)
         cmd = args.pop(0)
         args = map(util.expandpath, args)