equal
deleted
inserted
replaced
233 btype = ui.config('patchbomb', 'bundletype') |
233 btype = ui.config('patchbomb', 'bundletype') |
234 if btype: |
234 if btype: |
235 opts['type'] = btype |
235 opts['type'] = btype |
236 try: |
236 try: |
237 commands.bundle(ui, repo, tmpfn, dest, **opts) |
237 commands.bundle(ui, repo, tmpfn, dest, **opts) |
238 fp = open(tmpfn, 'rb') |
238 return util.readfile(tmpfn) |
239 data = fp.read() |
|
240 fp.close() |
|
241 return data |
|
242 finally: |
239 finally: |
243 try: |
240 try: |
244 os.unlink(tmpfn) |
241 os.unlink(tmpfn) |
245 except OSError: |
242 except OSError: |
246 pass |
243 pass |