view tests/test-ui-color.py @ 13968:82845434e974 stable

convert: make filemap prune useless branch closing revs (issue2774) A branch closing revision only applies if one of its parents belongs to the branch being closed. Otherwise the filemap can prune it too.
author Patrick Mezard <pmezard@gmail.com>
date Wed, 20 Apr 2011 23:15:18 +0200
parents 4c50552fc9bc
children 842a9179132c
line wrap: on
line source

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