diff -r da5378d39269 -r 85e2209d401c mercurial/hgweb.py --- 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())