view tests/test-ui-color.py @ 12798:3d6ba8c2b1b8 stable

subrepo: fix status check on SVN subrepos (issue2445)
author Matt Mackall <mpm@selenic.com>
date Thu, 21 Oct 2010 03:28:51 -0500
parents 386e56ecfb78
children 4c50552fc9bc
line wrap: on
line source

#!/usr/bin/env python

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