tests/test-ui-color.py
author Patrick Mezard <pmezard@gmail.com>
Sat, 30 Apr 2011 19:42:00 +0200
changeset 14082 176b3abb5b8b
parent 12865 4c50552fc9bc
child 14516 842a9179132c
permissions -rw-r--r--
graphlog: fix log -G --removed Current version was mispelled and processed like a valued argument.

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