changeset 46014:b86608e97fa8

pull: flush stdin after the `pull from` message That message can end up being flushed after some stderr message in some case, leading to confusing output. Differential Revision: https://phab.mercurial-scm.org/D9506
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 02 Dec 2020 23:15:11 +0100
parents 7a79548954b3
children f44b9c72f061
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Wed Dec 02 20:10:22 2020 +0100
+++ b/mercurial/commands.py	Wed Dec 02 23:15:11 2020 +0100
@@ -5337,6 +5337,7 @@
 
     source, branches = hg.parseurl(ui.expandpath(source), opts.get(b'branch'))
     ui.status(_(b'pulling from %s\n') % util.hidepassword(source))
+    ui.flush()
     other = hg.peer(repo, opts, source)
     try:
         revs, checkout = hg.addbranchrevs(