[PATCH] ui.prompt: Show prompt and selection in non-interactive mode

Peter Arrenbrecht peter.arrenbrecht at gmail.com
Mon May 4 00:32:22 CDT 2009


On Sun, May 3, 2009 at 9:33 PM, Martin Geisler <mg at lazybytes.net> wrote:
> Mads Kiilerich <mads at kiilerich.com> writes:
>
>> # HG changeset patch
>> # User Mads Kiilerich <mads at kiilerich.com>
>> # Date 1241261315 -7200
>> # Node ID 41ba1dd055d26a4a75ff6e353caf82bb6754acba
>> # Parent  fe25c839422e33716f71241485bb0c1f33724622
>> ui.prompt: Show prompt and selection in non-interactive mode
>>
>> ui.prompt was completely silent in non-interactive mode, unless in
>> verbose mode. It was fair enough that it chooses the default
>> automatically, but it is confusing that the message and prompt shown
>> interactively can't be found in scripted tests.
>
> I agree that it looks better, but wont this change confuse scripts that
> interact with Mercurial in a non-interactive way?

I originally made ui.prompt output its response for scripts embedded
in user documentation (as in the hg book and the pbranch docs). I
would have much preferred enabling this generally, but didn't dare for
the reason you give above. The problem with using --verbose is that it
adds (or may add) other noise to the examples in the doc.
-parren



More information about the Mercurial-devel mailing list