view tests/test-ui-color.py @ 13552:7ab85fec60c3 stable

ancestor: rewrite to deal with crossed linkrevs (issue2682) This version is about 10% slower, possibly because it visits some revisions in a different topological order than what's in the revlog.
author Matt Mackall <mpm@selenic.com>
date Mon, 07 Mar 2011 15:44:43 -0600
parents 4c50552fc9bc
children 842a9179132c
line wrap: on
line source

from hgext import color

# ensure errors aren't buffered
testui = color.colorui()
testui.pushbuffer()
testui.write('buffered\n')
testui.warn('warning\n')
testui.write_err('error\n')
print repr(testui.popbuffer())