[RFC] reduce Cc: prompts in hg email

Greg Ward greg-hg at gerg.ca
Mon Jan 25 21:59:58 CST 2010


On Mon, Jan 25, 2010 at 6:15 AM, Christian Ebert <blacktrash at gmx.net> wrote:
> 1) Turn off Cc prompt altogether (behaviour like bcc)
> 2) Turn off Cc prompt when
>   [email]
>   cc =
>   "empty" value in hgrc
> 3) Turn off Cc prompt when --to option is given
> 4) Introduce a new config option, like askcc
>
> I've submitted proposals for:
>
> 2)
> http://www.selenic.com/pipermail/mercurial-devel/2010-January/018150.html
> disadvantage: turns cc "magicly" into a boolean

Yeah, magic is bad.  So tempting though.  ;-)

> 3)
> http://www.selenic.com/pipermail/mercurial-devel/2010-January/018158.html
>
> I include the behaviour table for 3) again here (changes marked *):

Yow!  The very fact that this needs such a big and complex table
describing it is a big strike against it, IMHO.  (Consider: do you
understand how to use "hg remove" to forget a file?  Me neither.
That's why I was happy to see the "forget" command (re-)added.)

> 1) is easy to implement

And easy to document, easy to explain, easy to understand.  And it's
consistent.  The only required info to send email should be "To" and
"Subject".

BTW I strongly agree with Mads' suggestion that patchbomb should
typically just tell you what it's going to send and then ask for
confirmation.  The current UI could definitely be improved.

Greg


More information about the Mercurial mailing list