##// END OF EJS Templates
progress: don't compute estimate without a total...
progress: don't compute estimate without a total Without this, computing an estimate crashes. Test included.

File last commit:

r12865:4c50552f stable
r13154:e11c14f1 default
Show More
test-ui-color.py
9 lines | 213 B | text/x-python | PythonLexer
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())