tests/test-ui-color.py
author Matt Mackall <mpm@selenic.com>
Fri, 25 Feb 2011 15:31:32 -0600
branchstable
changeset 13481 4eb1e9d6a7c9
parent 12865 4c50552fc9bc
child 14516 842a9179132c
permissions -rw-r--r--
context: be even more careful about result order in ancestors() (issue2642) The earlier patch could be confused by more complicated topologies.

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