pull: flush stdin after the `pull from` message
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 02 Dec 2020 23:15:11 +0100
changeset 46029 b86608e97fa8
parent 46028 7a79548954b3
child 46030 f44b9c72f061
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
mercurial/commands.py
--- 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(