templater: make pad() strip color codes before computing width (
issue5416)
Tested in ANSI mode. We might have to extend _ansieffectre to support
terminfo mode.
templater: make pad() compute actual width
str.ljust() and .rjust() are based on byte length, which are valid only for
ASCII characters.
templater: reject bad fillchar argument passed to pad()
Otherwise TypeError would be raised.
color: insert color code after every "\e[0m" (
issue5413)
This assumes the last color wins, tested in ANSI mode. I guess terminfo mode
would work in the same way.
debugtemplate: pass ui to templater so label() works
Follows up
3356bf61fa25.
subrepo: move prompts out of the if (
issue5505)
Prompts weren't available in the else clause