[PATCH] ui: change default for ui.askusername to True

Martin Geisler mg at lazybytes.net
Fri Oct 2 02:44:43 CDT 2009


TK Soh <teekaysoh at gmail.com> writes:

> On Thu, Oct 1, 2009 at 9:22 PM, Martin Geisler <mg at lazybytes.net> wrote:
>> Martin Geisler <mg at lazybytes.net> writes:
>>
>>> +                self.status(_("(set ui.username to make this permanent)"))
>>
>> I don't think this message is very easy to understand for new users,
>> but I was unsure what to write instead. Asking them to edit the
>> ~/.hgrc file will look odd on Windows :-)
>
> Would something like "set username setting in [ui] section to make
> this permanent" be more obviously? I often too feel that the
> ui.username syntax is unclear to new users, though it's certainly
> simpler to write once you know what it means.

Yes, that notation is also a problem. Perhaps we can add a new help
topic (hg help hgrc?) which will explain it and either refer to the full
documentation online or include it from doc/hgrc.5.txt.

However, Benoit said on IRC that changing the askusername default to
True has been discussed before and that it defaults to False to avoid
messing up scripts that parse the output. I cannot find any discussion
in the mailinglist archives, all I can see is that the ui.askusername
setting was introduced in 7192876ac329.

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.



More information about the Mercurial-devel mailing list