[PATCH] Add ability to send bundles to patchbomb extension

Alexis S. L. Carvalho alexis at cecm.usp.br
Mon Mar 26 19:14:25 CDT 2007


Thus spake John Goerzen:
> Add ability to send bundles to patchbomb extension

I've pushed this to crew.

A minor comment:

> +    def getbundlemsgs(bundle):
> +        subj = opts['subject'] or \
> +                prompt('Subject:', default='A bundle for your repository')
> +        ui.write(_('\nWrite the introductory message for the bundle.\n\n'))
> +        body = ui.edit('', sender)
> +
> +        msg = email.MIMEMultipart.MIMEMultipart()
> +        if body:
> +            msg.attach(email.MIMEText.MIMEText(body, 'plain'))
> +        datapart = email.MIMEBase.MIMEBase('application', 'x-mercurial-bundle')
> +        datapart.set_payload(bundle)
> +        email.Encoders.encode_base64(datapart)
> +        msg.attach(datapart)

It'd be nice if the bundle had a filename specified.

Thanks

Alexis


More information about the Mercurial-devel mailing list