mercurial/dispatch.py
changeset 23270 41c03b7592ed
parent 22595 244478687edd
child 23871 b2d8f3685b06
equal deleted inserted replaced
23269:d9d8d2e0f701 23270:41c03b7592ed
   400                                  "of %i variable in alias '%s' definition."
   400                                  "of %i variable in alias '%s' definition."
   401                                  % (int(m.groups()[0]), self.name))
   401                                  % (int(m.groups()[0]), self.name))
   402                         return ''
   402                         return ''
   403                 cmd = re.sub(r'\$(\d+|\$)', _checkvar, self.definition[1:])
   403                 cmd = re.sub(r'\$(\d+|\$)', _checkvar, self.definition[1:])
   404                 cmd = aliasinterpolate(self.name, args, cmd)
   404                 cmd = aliasinterpolate(self.name, args, cmd)
   405                 return util.system(cmd, environ=env, out=ui.fout)
   405                 return ui.system(cmd, environ=env)
   406             self.fn = fn
   406             self.fn = fn
   407             return
   407             return
   408 
   408 
   409         try:
   409         try:
   410             args = shlex.split(self.definition)
   410             args = shlex.split(self.definition)