Mercurial > hg
comparison mercurial/sshserver.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 | 3b6f18851d87 |
children | 8ff321a381d0 |
comparison
equal
deleted
inserted
replaced
6781:b4b7261164d5 | 6782:b9d6ab187523 |
---|---|
202 fp.close() | 202 fp.close() |
203 if tempname is not None: | 203 if tempname is not None: |
204 os.unlink(tempname) | 204 os.unlink(tempname) |
205 | 205 |
206 def do_stream_out(self): | 206 def do_stream_out(self): |
207 streamclone.stream_out(self.repo, self.fout) | 207 for chunk in streamclone.stream_out(self.repo): |
208 self.fout.write(chunk) | |
209 self.fout.flush() |