tests/test-ui-color.py
author Javi Merino <cibervicho@gmail.com>
Mon, 14 Feb 2011 07:39:21 +0000
changeset 13380 d11405848abd
parent 12865 4c50552fc9bc
child 14516 842a9179132c
permissions -rw-r--r--
hgk: gitk->hgk in About... menu

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())