[PATCH 2 of 3] ui: prompt_key -- like prompt, but inputs only one keystroke

Peter Arrenbrecht peter.arrenbrecht at gmail.com
Thu Dec 27 01:41:02 CST 2007


> Second, most of our prompts are currently single-character, and we
> probably want some consistency here. And no, I'm not particularly keen
> on having a command-line option to control the behavior. That just means
> when I sit down at someone else's machine and hit "y<enter>", I may be
> surprised to have just done two things rather than one.

I see the consistency argument, but when you sit down at another's
machine, you should generally be ready for some surprises, shouldn't
you? To me, part of the lure of Unix _is_ that I can tweak things to
my liking. Otherwise you should really advocate dropping the [default]
section in hgrc too, I think.
-peter


More information about the Mercurial-devel mailing list