[PATCH STABLE, RFC] ui: add a formatted() method -- like interactive(), but for output

Greg Ward greg-hg at gerg.ca
Thu May 6 16:33:46 CDT 2010


On Tue, May 4, 2010 at 5:10 PM, Dan Villiom Podlaski Christiansen
<danchr at gmail.com> wrote:
> # HG changeset patch
> # User Dan Villiom Podlaski Christiansen <danchr at gmail.com>
> # Date 1273007228 -7200
> # Branch stable
> # Node ID 5b66df12549a2c01c603c12151689a945037a542
> # Parent  69145d9b4127d3307a99d19e3321bead0058f3a5
> ui: add a formatted() method -- like interactive(), but for output
[...]
> I haven't tested this patch extensively; it is primarily provided for
> testing & comment. Eventually, the progress extension should also use
> this infrastructure.

I don't know if this is a good idea or not, but I *do* know that
ui.formatted() really needs a docstring.  As does interactive(),
although that's an existing flaw.

Greg


More information about the Mercurial-devel mailing list