Mercurial > hg
view tests/test-ui-color.py @ 12131:c061f9882ff7
debugdata: try to access filelogs through repo, if possible
If a repository is accesible, first treat the filename as a working copy file
and try to open its filelog. Fallback to opening the file directly as a
revlog, as before.
author | Sune Foldager <cryo@cyanite.org> |
---|---|
date | Wed, 01 Sep 2010 14:55:03 +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())