Mercurial > public > mercurial-scm > hg-stable
diff tests/test-progress.t @ 28171:2d20d1d2ea76
progress: display progress bar when HGPLAINEXCEPT contains "progress"
This patch changes "progress.shouldprint()" so a feature name is provided to
"ui.plain()" to determine if there is an exception specificed in HGPLAINEXCEPT
for the progress extension.
This will allow user-facing scripts to provide progress output while HGPLAIN
is enabled.
author | Matt Anderson <andersonmat@fb.com> |
---|---|
date | Wed, 17 Feb 2016 15:18:30 -0800 |
parents | 79c75459321e |
children | d9f7f590f1e3 |
line wrap: on
line diff
--- a/tests/test-progress.t Wed Feb 17 19:38:44 2016 +0000 +++ b/tests/test-progress.t Wed Feb 17 15:18:30 2016 -0800 @@ -79,6 +79,12 @@ no progress with --quiet $ hg -y loop 3 --quiet +test plain mode exception + $ HGPLAINEXCEPT=progress hg -y loop 1 + \r (no-eol) (esc) + loop [ ] 0/1\r (no-eol) (esc) + \r (no-eol) (esc) + test nested short-lived topics (which shouldn't display with nestdelay): $ hg -y loop 3 --nested