Mercurial > public > mercurial-scm > hg
diff mercurial/hgweb/protocol.py @ 6782:b9d6ab187523
streamclone yields chunks instead of accepting a file-like object
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Sun, 29 Jun 2008 14:20:01 +0200 |
parents | b4b7261164d5 |
children | 18c429ea3a0e 8ff321a381d0 |
line wrap: on
line diff
--- a/mercurial/hgweb/protocol.py Sun Jun 29 11:34:36 2008 +0200 +++ b/mercurial/hgweb/protocol.py Sun Jun 29 14:20:01 2008 +0200 @@ -205,4 +205,5 @@ def stream_out(repo, req): req.respond(HTTP_OK, HGTYPE) - streamclone.stream_out(repo, req, untrusted=True) + for chunk in streamclone.stream_out(repo, untrusted=True): + req.write(chunk)