Show More
@@ -69,6 +69,8 b' HGPLAINEXCEPT' | |||||
69 | Preserve internationalization. |
|
69 | Preserve internationalization. | |
70 | ``revsetalias`` |
|
70 | ``revsetalias`` | |
71 | Don't remove revset aliases. |
|
71 | Don't remove revset aliases. | |
|
72 | ``progress`` | |||
|
73 | Don't hide progress output. | |||
72 |
|
74 | |||
73 | Setting HGPLAINEXCEPT to anything (even an empty string) will |
|
75 | Setting HGPLAINEXCEPT to anything (even an empty string) will | |
74 | enable plain mode. |
|
76 | enable plain mode. |
@@ -18,7 +18,7 b' def spacejoin(*args):' | |||||
18 | return ' '.join(s for s in args if s) |
|
18 | return ' '.join(s for s in args if s) | |
19 |
|
19 | |||
20 | def shouldprint(ui): |
|
20 | def shouldprint(ui): | |
21 | return not (ui.quiet or ui.plain()) and ( |
|
21 | return not (ui.quiet or ui.plain('progress')) and ( | |
22 | ui._isatty(sys.stderr) or ui.configbool('progress', 'assume-tty')) |
|
22 | ui._isatty(sys.stderr) or ui.configbool('progress', 'assume-tty')) | |
23 |
|
23 | |||
24 | def fmtremaining(seconds): |
|
24 | def fmtremaining(seconds): |
@@ -79,6 +79,12 b' test with delay=0, refresh=0' | |||||
79 | no progress with --quiet |
|
79 | no progress with --quiet | |
80 | $ hg -y loop 3 --quiet |
|
80 | $ hg -y loop 3 --quiet | |
81 |
|
81 | |||
|
82 | test plain mode exception | |||
|
83 | $ HGPLAINEXCEPT=progress hg -y loop 1 | |||
|
84 | \r (no-eol) (esc) | |||
|
85 | loop [ ] 0/1\r (no-eol) (esc) | |||
|
86 | \r (no-eol) (esc) | |||
|
87 | ||||
82 | test nested short-lived topics (which shouldn't display with nestdelay): |
|
88 | test nested short-lived topics (which shouldn't display with nestdelay): | |
83 |
|
89 | |||
84 | $ hg -y loop 3 --nested |
|
90 | $ hg -y loop 3 --nested |
General Comments 0
You need to be logged in to leave comments.
Login now