# HG changeset patch # User Pierre-Yves David # Date 2020-12-02 22:15:11 # Node ID b86608e97fa891cc2b0a25737d7c14dbd9322cb1 # Parent 7a79548954b3f5235df6ec743db9f53665bb167f 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 diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -5337,6 +5337,7 @@ def pull(ui, repo, source=b"default", ** 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(