hgext/patchbomb.py
changeset 46948 946db89607c8
parent 46938 a48f15f1c178
child 48017 ff2304dd3ba9
equal deleted inserted replaced
46947:3f29765e0d95 46948:946db89607c8
   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: