Comments
Patch
@@ -17,8 +17,8 @@ def spacejoin(*args):
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 @@ class progbar(object):
self.show(now, topic, *self.topicstates[topic])
finally:
self._refreshlock.release()
-
@@ -76,7 +76,8 @@ test with delay=0, refresh=0
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):