hgext/patchbomb.py
changeset 38198 2ce60954b1b7
parent 38164 46c2b19a1263
child 38408 457fa4056286
equal deleted inserted replaced
38197:aac4be30e250 38198:2ce60954b1b7
    77 import email.generator as emailgen
    77 import email.generator as emailgen
    78 import email.utils as eutil
    78 import email.utils as eutil
    79 import errno
    79 import errno
    80 import os
    80 import os
    81 import socket
    81 import socket
    82 import tempfile
       
    83 
    82 
    84 from mercurial.i18n import _
    83 from mercurial.i18n import _
    85 from mercurial import (
    84 from mercurial import (
    86     cmdutil,
    85     cmdutil,
    87     commands,
    86     commands,
   315     `bundle` command.
   314     `bundle` command.
   316 
   315 
   317     The bundle is a returned as a single in-memory binary blob.
   316     The bundle is a returned as a single in-memory binary blob.
   318     """
   317     """
   319     ui = repo.ui
   318     ui = repo.ui
   320     tmpdir = tempfile.mkdtemp(prefix='hg-email-bundle-')
   319     tmpdir = pycompat.mkdtemp(prefix='hg-email-bundle-')
   321     tmpfn = os.path.join(tmpdir, 'bundle')
   320     tmpfn = os.path.join(tmpdir, 'bundle')
   322     btype = ui.config('patchbomb', 'bundletype')
   321     btype = ui.config('patchbomb', 'bundletype')
   323     if btype:
   322     if btype:
   324         opts[r'type'] = btype
   323         opts[r'type'] = btype
   325     try:
   324     try: