Tarball support v0.2

Wojciech Milkowski wmilkowski at interia.pl
Sat Aug 20 16:29:11 CDT 2005


Matt Mackall wrote:
> I've just noticed that you're using temp files. I suppose that's
> required with .zip, but it should be possible to stream tar.gz files.
> That has the advantage that you don't have to wait a minute before
> sending starts and you don't have to have extra disk space.

That would be smarter, but sys.stdout doesn't implement seek() and 
tell() methods, and cannot work as real file for archiving classes.
Another reason why I used temporary files is ability to tell final 
tarball size using 'Content-length:' header.

Wojtek

----------------------------------------------------------------------
Najwiekszy MOTO-serwis w Polsce >>> http://link.interia.pl/f18a9



More information about the Mercurial mailing list