tests/test-ui-color.py
author Eric Eisner <ede@mit.edu>
Mon, 20 Dec 2010 13:59:33 -0500
changeset 13181 413bef846806
parent 12865 4c50552fc9bc
child 14516 842a9179132c
permissions -rw-r--r--
subrepo: fix subrelpath for git subrepos This patch conforms gitsubrepo code to the variable naming scheme of the other subrepo implementations. All user-facing path references should be relative to the root repository.

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