[MERGE] Make mail-to address in ``bzr send`` optional for interactive mail clients

John Arbash Meinel john at arbash-meinel.com
Mon Nov 26 20:19:22 GMT 2007


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

Lukáš Lalinský wrote:
> Hi,
> 
> if bzr send is used with an interactive mail client, it's easier to fill
> in the target address in the client rather than on the command line
> (address book, auto-complete, etc.). I think it makes sense to make it
> optional in such cases. For the 'editor' client, which sends mail
> directly, it's still required.
> 
> Lukas
> 
> 

I believe the default for "bzr send" is to write to stdout. So it may be weird
to have plain "bzr send" sometimes write to stdout and sometimes spawn a mail
editor depending on the config settings.

This is certainly an argument in favor of requiring -o-. AIUI, we retained "bzr
send > foo.patch" behavior because it was the old bundle behavior. But then
didn't we split bundle out into its own command again?

I use "bzr send > ...." in a shell alias because zsh will prevent that from
accidentally overwriting an existing file. Rather than doing "bzr send -o ...".
And I think there were some other people who wanted to retain similar
functionality. (I would be fine with adding -o- to my alias.)

So maybe we should switch back the "must supply -o or --mail-to" behavior
(where it can be obtained from config settings), and make it obvious that it is
a command line api break.


I think Aaron's comment is that you can do something like (this is my config):

[/home/jameinel/dev/bzr]
submit_branch=/home/jameinel/dev/bzr/bzr.dev
submit_to = Bazaar Mailing List <bazaar at lists.canonical.com>

[/home/jameinel/dev/bzr/bzr.dev]
public_location=http://bazaar-vcs.org/bzr/bzr.dev


Which will have it look up the public_location for the submission branch, but
still use your local mirror to search for missing revisions.

Actually, I take it back, my alias is using "bzr merge-directive"... Which is
yet another similar but not exactly the same command.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHSypJJdeBCYSNAAMRAj/zAJ4tpvcsD60hmTH3IUSUKd1X0jKHFACg2e8Z
P1yNzvj513MbQ20aQUE0FbY=
=VX/R
-----END PGP SIGNATURE-----



More information about the bazaar mailing list