tests/test-ui-color.py
author Nicolas Dumazet <nicdumz.commits@gmail.com>
Sun, 07 Nov 2010 18:16:07 +0900
branchstable
changeset 12949 6878eaa5a40d
parent 12865 4c50552fc9bc
child 14516 842a9179132c
permissions -rw-r--r--
revlog: if start is nullrev, end is always a descendant

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