tests/test-ui-color.py
author Idan Kamara <idankk86@gmail.com>
Fri, 29 Apr 2011 22:21:13 +0300
changeset 14054 3c616f512a5b
parent 12865 4c50552fc9bc
child 14516 842a9179132c
permissions -rw-r--r--
mq: be more explicit on invalid patch name message

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