Mercurial > kallithea
changeset 5372:2098b682f28f
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.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Sat, 08 Aug 2015 13:55:15 +0200 |
parents | 3e4b65abbd0b |
children | e84c2738fbd8 |
files | kallithea/lib/vcs/backends/hg/changeset.py |
diffstat | 1 files changed, 0 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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