redirecting hg output

Brendan Cully brendan at kublai.com
Fri May 4 22:43:39 UTC 2007


On Friday, 04 May 2007 at 17:37, TK Soh wrote:
> I tried to subclass ui to redirect the output to a gui window, by
> refining ui.write(). Most commands seems to work, but the diff output
> (hg diff, hg log -p, hg export) are still sent to stdout.
> 
> Any pointers or advice on what I should do?

ui.pushbuffer() and ui.popbuffer() are designed to let you do this
with a minimum of fuss. See the notify extension for an example.



More information about the Mercurial-devel mailing list