Patchwork D9506: pull: flush stdin after the `pull from` message

login
register
mail settings
Submitter phabricator
Date Dec. 2, 2020, 10:20 p.m.
Message ID <differential-rev-PHID-DREV-7zpodktk5bdoofxipxue-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47788/
State Superseded
Headers show

Comments

phabricator - Dec. 2, 2020, 10:20 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  That message can end up being flushed after some stderr message in some case,
  leading to confusing output.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  mercurial/commands.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -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(