Mercurial > hg
changeset 9083:ec171737aaf1
Backed out changeset fce065538bcf: it caused a 5x performance regression on OS X
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Wed, 08 Jul 2009 17:01:18 -0700 |
parents | fce065538bcf |
children | 9f191931c859 |
files | mercurial/util.py |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/util.py Sat May 09 17:34:11 2009 +0200 +++ b/mercurial/util.py Wed Jul 08 17:01:18 2009 -0700 @@ -38,12 +38,14 @@ import subprocess closefds = os.name == 'posix' -def popen2(cmd): - p = subprocess.Popen(cmd, shell=True, close_fds=closefds, +def popen2(cmd, bufsize=-1): + p = subprocess.Popen(cmd, shell=True, bufsize=bufsize, + close_fds=closefds, stdin=subprocess.PIPE, stdout=subprocess.PIPE) return p.stdin, p.stdout -def popen3(cmd): - p = subprocess.Popen(cmd, shell=True, close_fds=closefds, +def popen3(cmd, bufsize=-1): + p = subprocess.Popen(cmd, shell=True, bufsize=bufsize, + close_fds=closefds, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) return p.stdin, p.stdout, p.stderr