changeset 23030 | a0e0aa12b672 |
parent 22963 | 56e04741bbf1 |
child 23076 | c312ef382033 |
--- a/mercurial/util.py Fri Oct 17 09:57:05 2014 +0900 +++ b/mercurial/util.py Sat Aug 30 17:38:14 2014 +0200 @@ -649,7 +649,10 @@ proc = subprocess.Popen(cmd, shell=True, close_fds=closefds, env=env, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) - for line in proc.stdout: + while True: + line = proc.stdout.readline() + if not line: + break out.write(line) proc.wait() rc = proc.returncode