Mercurial > hg
view tests/test-ui-color.py @ 12343:28642f7fc2cf stable
convert/svn: fix broken symlink renames in svn sink
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Mon, 20 Sep 2010 21:46:39 +0200 |
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())