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

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Wed Dec 2 22:20:21 UTC 2020


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

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(



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


More information about the Mercurial-devel mailing list