Skip to content
Snippets Groups Projects
Commit 79c75459 authored by Augie Fackler's avatar Augie Fackler
Browse files

progress: respect ui.quiet (issue4726)

Caught when I was running the hgsubversion testsuite and it started
printing progress bars over top of my test output lines.
parent a6998394
No related branches found
No related tags found
No related merge requests found
......@@ -17,8 +17,8 @@
return ' '.join(s for s in args if s)
def shouldprint(ui):
return not ui.plain() and (ui._isatty(sys.stderr) or
ui.configbool('progress', 'assume-tty'))
return not (ui.quiet or ui.plain()) and (
ui._isatty(sys.stderr) or ui.configbool('progress', 'assume-tty'))
def fmtremaining(seconds):
"""format a number of remaining seconds in humain readable way
......@@ -249,4 +249,3 @@
self.show(now, topic, *self.topicstates[topic])
finally:
self._refreshlock.release()
......@@ -76,7 +76,8 @@
loop [===============> ] 1/3\r (no-eol) (esc)
loop [===============================> ] 2/3\r (no-eol) (esc)
\r (no-eol) (esc)
no progress with --quiet
$ hg -y loop 3 --quiet
test nested short-lived topics (which shouldn't display with nestdelay):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment