Mercurial > kallithea
comparison rhodecode/lib/vcs/backends/hg/changeset.py @ 2267:b872bc10f4ec beta
cleanup code of get archive for repositories
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 15 May 2012 19:29:02 +0200 |
parents | 99536f257644 |
children | bb0309b4e1ee |
comparison
equal
deleted
inserted
replaced
2266:64ef1b886336 | 2267:b872bc10f4ec |
---|---|
260 elif prefix.strip() == '': | 260 elif prefix.strip() == '': |
261 raise VCSError("Prefix cannot be empty") | 261 raise VCSError("Prefix cannot be empty") |
262 | 262 |
263 archival.archive(self.repository._repo, stream, self.raw_id, | 263 archival.archive(self.repository._repo, stream, self.raw_id, |
264 kind, prefix=prefix, subrepos=subrepos) | 264 kind, prefix=prefix, subrepos=subrepos) |
265 | |
266 #stream.close() | |
267 | 265 |
268 if stream.closed and hasattr(stream, 'name'): | 266 if stream.closed and hasattr(stream, 'name'): |
269 stream = open(stream.name, 'rb') | 267 stream = open(stream.name, 'rb') |
270 elif hasattr(stream, 'mode') and 'r' not in stream.mode: | 268 elif hasattr(stream, 'mode') and 'r' not in stream.mode: |
271 stream = open(stream.name, 'rb') | 269 stream = open(stream.name, 'rb') |