[PATCH] bundle2: issue remote output as "status" (issue4612)

Pierre-Yves David pierre-yves.david at ens-lyon.org
Thu Apr 23 23:56:29 UTC 2015


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at fb.com>
# Date 1429832808 -3600
#      Fri Apr 24 00:46:48 2015 +0100
# Branch stable
# Node ID 265f72f7d36a9b55a57b37968eece10fa766ba94
# Parent  1f9127c9239b9c39c676bb09752db1e2ca6c26f7
bundle2: issue remote output as "status" (issue4612)

Remote output should be silenced by --quiet. The issue was found while running
`test-largefiles-cache.t` so it will get tested once we switch bundle2 by
default.

diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py
--- a/mercurial/bundle2.py
+++ b/mercurial/bundle2.py
@@ -1169,11 +1169,11 @@ def handlecheckheads(op, inpart):
 
 @parthandler('output')
 def handleoutput(op, inpart):
     """forward output captured on the server to the client"""
     for line in inpart.read().splitlines():
-        op.ui.write(('remote: %s\n' % line))
+        op.ui.status(('remote: %s\n' % line))
 
 @parthandler('replycaps')
 def handlereplycaps(op, inpart):
     """Notify that a reply bundle should be created
 


More information about the Mercurial-devel mailing list