Mercurial > hg
view tests/test-ui-color.py @ 13066:86888ae9ce90 stable
hgwebdir: fix incorrect index generation for invalid paths (issue2023)
edd07be943dd moved the subdirectory match inside the repository match
loop. A virtual path existing/path/invalid/path would then match
existing/path, and generate a wrong index page.
author | Wagner Bruna <wbruna@softwareexpress.com.br> |
---|---|
date | Tue, 30 Nov 2010 12:45:25 -0200 |
parents | 4c50552fc9bc |
children | 842a9179132c |
line wrap: on
line source
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())