Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
6781:b4b7261164d5 | 6782:b9d6ab187523 |
---|---|
203 fp.close() | 203 fp.close() |
204 os.unlink(tempname) | 204 os.unlink(tempname) |
205 | 205 |
206 def stream_out(repo, req): | 206 def stream_out(repo, req): |
207 req.respond(HTTP_OK, HGTYPE) | 207 req.respond(HTTP_OK, HGTYPE) |
208 streamclone.stream_out(repo, req, untrusted=True) | 208 for chunk in streamclone.stream_out(repo, untrusted=True): |
209 req.write(chunk) |