bzr send support for git-am-style patches

Aaron Bentley aaron at aaronbentley.com
Mon Mar 30 16:50:53 BST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jelmer Vernooij wrote:
> I'd like
> to add support for generating git-compatible patches with Bazaar+bzr-git

I assume this is a special git format, equivalent to a merge directive?

> The main thing that seems to be missing in bzr core for this is support
> for registering new a new --format as used by "bzr send".

> The current allowed options for --format in "bzr send" is hardcoded, and
> (IIUC) controls both the bundle format and the merge directive format.

Yes.  I was applying YAGNI.  I didn't want to go crazy with formats if
that wasn't necessary.  It sounds like Now You Need It (NYNI?).

> Would it make sense to have a (separate of
> bzrlib.merge_directive._format_registry) registry for
> bundle-format+merge-directive-format combinations that's used for --format?

I think so.  Selecting a combination of formats should be enough
flexibility for the average user.  BTW, I expect the next new format to
be a bundle format that supports CHK.

I do wonder whether you'll want to change the codepath further to
support git-compatible patches, though.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknQ6lcACgkQ0F+nu1YWqI1rTgCfb+Swpmg7a/1JcA5cnpp10Of5
cVcAn0KdNeihGIQ0EdKYmkAbqPtVcFLS
=8p3M
-----END PGP SIGNATURE-----



More information about the bazaar mailing list