tests/test-ui-color.py
author Nils Adermann <naderman@naderman.de>
Sat, 12 Mar 2011 18:15:14 +0100
changeset 13644 7e6c2f58ad56
parent 12865 4c50552fc9bc
child 14516 842a9179132c
permissions -rw-r--r--
identify: list bookmarks for remote repositories

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