tests/test-ui-color.py
author Christian Ebert <blacktrash@gmx.net>
Sat, 04 Dec 2010 14:44:05 +0100
changeset 13079 f3a2bb1e4255
parent 12865 4c50552fc9bc
child 14516 842a9179132c
permissions -rw-r--r--
keyword: make kwfiles show deleted files configured for expansion

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