[PATCH 1 of 2] ui: add ui.write() label API

Matt Mackall mpm at selenic.com
Tue Mar 30 17:10:18 CDT 2010


On Fri, 2010-03-26 at 15:14 -0400, Brodie Rao wrote:
> # HG changeset patch
> # User Brodie Rao <me+hg at dackz.net>
> # Date 1266550756 18000
> # Node ID c5eaa1e8207881ad48aaeaf98fcd642bdb6c76b3
> # Parent  bd36e5c0ccb110c11bf0bda72ea77171d6844f18
> ui: add ui.write() label API
> 
> This adds output labeling support with the following methods:
> 
> - ui.write(..., label='topic.name topic2.name2 ...')
> - ui.write_err(.., label=...)
> - ui.popbuffer(labeled=False)
> - ui.style(msg, label)

Why are we adding ui.style? Isn't it just ui.write?

This patch needs splitting. I got bored scrolling through it for the
part I was interested in. Can we get:

- a patch with just the ui.py changes
- one patch for each command

We're also going to need some pointers somewhere on how to name styles.

-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial-devel mailing list