mercurial/dispatch.py
changeset 11524 24965bb270b7
parent 11495 6ee107782018
child 11556 c20c2c4c0c63
equal deleted inserted replaced
11517:8bbe396883db 11524:24965bb270b7
   206             self.fn = fn
   206             self.fn = fn
   207             self.badalias = True
   207             self.badalias = True
   208 
   208 
   209             return
   209             return
   210 
   210 
       
   211         if self.definition.startswith('!'):
       
   212             def fn(ui, *args):
       
   213                 cmd = '%s %s' % (self.definition[1:], ' '.join(args))
       
   214                 return util.system(cmd)
       
   215             self.fn = fn
       
   216             return
       
   217 
   211         args = shlex.split(self.definition)
   218         args = shlex.split(self.definition)
   212         cmd = args.pop(0)
   219         cmd = args.pop(0)
   213         args = map(util.expandpath, args)
   220         args = map(util.expandpath, args)
   214 
   221 
   215         try:
   222         try: