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
--- 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(