# HG changeset patch # User Mads Kiilerich # Date 1358208312 -3600 # Node ID 87923db0ecffaf9c231bde69058e005225b2a2fc # Parent cfa731b45b75073562dcf7223f48655fcd3ead6f archival: tarit should never close the dest passed to it Some archive types closed the open file passed to it, some didn't. This could cause either missing or duplicate close and cause problems in hgweb. The fix in 14f3795a5ed7 should only have closed the compressors and archivers - not the underlying file itself if no compressor is used. diff -r cfa731b45b75 -r 87923db0ecff mercurial/archival.py --- a/mercurial/archival.py Tue Jan 15 01:05:12 2013 +0100 +++ b/mercurial/archival.py Tue Jan 15 01:05:12 2013 +0100 @@ -106,7 +106,6 @@ self.fileobj = gzfileobj return tarfile.TarFile.taropen(name, mode, gzfileobj) else: - self.fileobj = fileobj return tarfile.open(name, mode + kind, fileobj) if isinstance(dest, str):