Show More
@@ -297,8 +297,10 def write_bundle(cg, filename, compress= | |||
|
297 | 297 | fh.write(z.compress(chunk)) |
|
298 | 298 | fh.write(z.flush()) |
|
299 | 299 | except: |
|
300 | fh.close() | |
|
300 | 301 | os.unlink(filename) |
|
301 | 302 | raise |
|
303 | fh.close() | |
|
302 | 304 | |
|
303 | 305 | def dodiff(fp, ui, repo, node1, node2, files=None, match=util.always, |
|
304 | 306 | changes=None, text=False, opts={}): |
@@ -1790,7 +1792,6 def incoming(ui, repo, source="default", | |||
|
1790 | 1792 | |
|
1791 | 1793 | cg = other.changegroup(incoming, "incoming") |
|
1792 | 1794 | write_bundle(cg, fname, compress=other.local(), fh=f) |
|
1793 | f.close() | |
|
1794 | 1795 | if not other.local(): |
|
1795 | 1796 | # use a bundlerepo |
|
1796 | 1797 | other = bundlerepo.bundlerepository(ui, repo.root, fname) |
General Comments 0
You need to be logged in to leave comments.
Login now