changeset 635 | 85e2209d401c |
parent 620 | 7369ec5d93f2 |
child 645 | a55048b2ae3a |
--- a/mercurial/hgweb.py Wed Jul 06 22:14:10 2005 -0800 +++ b/mercurial/hgweb.py Wed Jul 06 22:20:12 2005 -0800 @@ -687,7 +687,10 @@ nodes = map(bin, args['roots'][0].split(" ")) z = zlib.compressobj() - for chunk in self.repo.changegroup(nodes): + f = self.repo.changegroup(nodes) + while 1: + chunk = f.read(4096) + if not chunk: break sys.stdout.write(z.compress(chunk)) sys.stdout.write(z.flush())