equal
deleted
inserted
replaced
380 tmpfn = os.path.join(tmpdir, b'bundle') |
380 tmpfn = os.path.join(tmpdir, b'bundle') |
381 btype = ui.config(b'patchbomb', b'bundletype') |
381 btype = ui.config(b'patchbomb', b'bundletype') |
382 if btype: |
382 if btype: |
383 opts['type'] = btype |
383 opts['type'] = btype |
384 try: |
384 try: |
385 commands.bundle(ui, repo, tmpfn, dest, **opts) |
385 dests = [] |
|
386 if dest: |
|
387 dests = [dest] |
|
388 commands.bundle(ui, repo, tmpfn, *dests, **opts) |
386 return util.readfile(tmpfn) |
389 return util.readfile(tmpfn) |
387 finally: |
390 finally: |
388 try: |
391 try: |
389 os.unlink(tmpfn) |
392 os.unlink(tmpfn) |
390 except OSError: |
393 except OSError: |