[PATCH 2 of 2] Add a filename for the bundle

Matt Mackall mpm at selenic.com
Tue Mar 27 01:48:44 UTC 2007


On Mon, Mar 26, 2007 at 08:52:26PM -0500, John Goerzen wrote:
> # HG changeset patch
> # User John Goerzen <jgoerzen at complete.org>
> # Date 1174960197 18000
> # Node ID 9bceb8b5ac44c161b60789c9751f63e5e4886d82
> # Parent  8625504f507ccdb99a2ed1a30d3cb78fca625f45
> Add a filename for the bundle
> 
> diff -r 8625504f507c -r 9bceb8b5ac44 hgext/patchbomb.py
> --- a/hgext/patchbomb.py	Mon Mar 26 20:46:49 2007 -0500
> +++ b/hgext/patchbomb.py	Mon Mar 26 20:49:57 2007 -0500
> @@ -332,6 +332,8 @@ def patchbomb(ui, repo, *revs, **opts):
>              msg.attach(email.MIMEText.MIMEText(body, 'plain'))
>          datapart = email.MIMEBase.MIMEBase('application', 'x-mercurial-bundle')
>          datapart.set_payload(bundle)
> +        datapart.add_header('Content-Disposition', 'attachment',
> +                filename='hgbundle.bin')

The canonical extension for a bundle is ".hg". So perhaps we should
use bundle.hg here.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial-devel mailing list