##// END OF EJS Templates
dispatch: write shell alias output to ui out descriptor
Idan Kamara -
r14640:406b6d7b default
parent child Browse files
Show More
@@ -276,7 +276,7 b' class cmdalias(object):'
276 replace['0'] = self.name
276 replace['0'] = self.name
277 replace['@'] = ' '.join(args)
277 replace['@'] = ' '.join(args)
278 cmd = util.interpolate(r'\$', replace, cmd, escape_prefix=True)
278 cmd = util.interpolate(r'\$', replace, cmd, escape_prefix=True)
279 return util.system(cmd, environ=env)
279 return util.system(cmd, environ=env, out=ui.fout)
280 self.fn = fn
280 self.fn = fn
281 return
281 return
282
282
@@ -354,7 +354,7 b' def system(cmd, environ={}, cwd=None, on'
354 env = dict(os.environ)
354 env = dict(os.environ)
355 env.update((k, py2shell(v)) for k, v in environ.iteritems())
355 env.update((k, py2shell(v)) for k, v in environ.iteritems())
356 env['HG'] = hgexecutable()
356 env['HG'] = hgexecutable()
357 if out is None:
357 if out is None or out == sys.__stdout__:
358 rc = subprocess.call(cmd, shell=True, close_fds=closefds,
358 rc = subprocess.call(cmd, shell=True, close_fds=closefds,
359 env=env, cwd=cwd)
359 env=env, cwd=cwd)
360 else:
360 else:
General Comments 0
You need to be logged in to leave comments. Login now