Patchwork D7784: progress: flush stderr after clearing

login
register
mail settings
Submitter phabricator
Date Jan. 8, 2020, 7:54 p.m.
Message ID <8738463b8d5a5d26c72cb053b61d77bd@localhost.localdomain>
Download mbox | patch
Permalink /patch/44212/
State Not Applicable
Headers show

Comments

phabricator - Jan. 8, 2020, 7:54 p.m.
Closed by commit rHG4e0a6d157910: progress: flush stderr after clearing (authored by spectral).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7784?vs=19032&id=19107

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7784/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7784

AFFECTED FILES
  mercurial/progress.py

CHANGE DETAILS




To: spectral, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/progress.py b/mercurial/progress.py
--- a/mercurial/progress.py
+++ b/mercurial/progress.py
@@ -193,6 +193,7 @@ 
         if not self.printed or not self.lastprint or not shouldprint(self.ui):
             return
         self._writeerr(b'\r%s\r' % (b' ' * self.width()))
+        self._flusherr()
         if self.printed:
             # force immediate re-paint of progress bar
             self.lastprint = 0