comparison mercurial/commands.py @ 1431:16a5d349963c

Calling flush is unnecessary with bz2 decompressors and may not even exist.
author Matt Mackall <mpm@selenic.com>
date Mon, 24 Oct 2005 14:55:20 -0700
parents 918cb47d725e
children 22b44fd9a166
comparison
equal deleted inserted replaced
1430:c91966c3bbf5 1431:16a5d349963c
1698 1698
1699 def bzgenerator(f): 1699 def bzgenerator(f):
1700 zd = bz2.BZ2Decompressor() 1700 zd = bz2.BZ2Decompressor()
1701 for chunk in f: 1701 for chunk in f:
1702 yield zd.decompress(chunk) 1702 yield zd.decompress(chunk)
1703 yield zd.flush()
1704 1703
1705 bzgen = bzgenerator(util.filechunkiter(f, 4096)) 1704 bzgen = bzgenerator(util.filechunkiter(f, 4096))
1706 repo.addchangegroup(util.chunkbuffer(bzgen)) 1705 repo.addchangegroup(util.chunkbuffer(bzgen))
1707 1706
1708 def undo(ui, repo): 1707 def undo(ui, repo):