diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -1023,8 +1023,9 @@ self._buffers[-1].extend(args) return - # inliend _writenobuf() for speed - self._progclear() + # inlined _writenobuf() for speed + if not opts.get(r'keepprogressbar', False): + self._progclear() msg = b''.join(args) # opencode timeblockedsection because this is a critical path @@ -1061,7 +1062,8 @@ def _writenobuf(self, dest, *args, **opts): # update write() as well if you touch this code - self._progclear() + if not opts.get(r'keepprogressbar', False): + self._progclear() msg = b''.join(args) # opencode timeblockedsection because this is a critical path