[PATCH 2 of 3] ui.prompt: Show prompt and selection in non-interactive mode
Matt Mackall
mpm at selenic.com
Tue Jun 23 16:44:56 CDT 2009
On Sun, 2009-06-21 at 01:36 +0000, Mads Kiilerich wrote:
> # HG changeset patch
> # User Mads Kiilerich <mads at kiilerich.com>
> # Date 1245546818 -7200
> # Node ID 07fe1695fad4464f18d3fa632af99a3278168296
> # Parent f7457428462daa072c77e3426d34ca4757dffa2a
> ui.prompt: Show prompt and selection in non-interactive mode
>
> ui.prompt was completely silent in non-interactive mode, unless in verbose
> mode. It is fine that it chooses the default automatically, but it is confusing
> that the message and prompt shown interactively can't be found in scripted
> tests.
>
> The prompt and selection is now .write'ed instead of .note'ed.
Queued.
In general, it's a bug if our output changes for command line vs
scripts. Given that about the only regular user of prompt is merge,
which can already spew lots of confusing data, I think this patch is
probably safe in terms of script-compatibility.
--
http://selenic.com : development and support for Mercurial and Linux
More information about the Mercurial-devel
mailing list