# HG changeset patch # User Mads Kiilerich # Date 1439034915 -7200 # Node ID 2098b682f28f1f4d91b88d37e1984fff2af8bca9 # Parent 3e4b65abbd0b40b11f6a516dc651676bd92054b0 vcs: remove pointless stream reopening / seeking in hg fill_archive test_archival started failing after 8e72e78a7d9e refactored the controller to pass a stream created by fdopen. The failure was in code that doesn't make any difference anyway - just kill it. diff -r 3e4b65abbd0b -r 2098b682f28f kallithea/lib/vcs/backends/hg/changeset.py --- a/kallithea/lib/vcs/backends/hg/changeset.py Sat Aug 08 12:08:56 2015 +0300 +++ b/kallithea/lib/vcs/backends/hg/changeset.py Sat Aug 08 13:55:15 2015 +0200 @@ -309,13 +309,6 @@ archival.archive(self.repository._repo, stream, self.raw_id, kind, prefix=prefix, subrepos=subrepos) - if stream.closed and hasattr(stream, 'name'): - stream = open(stream.name, 'rb') - elif hasattr(stream, 'mode') and 'r' not in stream.mode: - stream = open(stream.name, 'rb') - else: - stream.seek(0) - def get_nodes(self, path): """ Returns combined ``DirNode`` and ``FileNode`` objects list representing