[PATCH 4 of 4] bundle2: stop capturing output for ssh again

Pierre-Yves David pierre-yves.david at ens-lyon.org
Wed Jun 3 15:26:33 CDT 2015


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at fb.com>
# Date 1432140246 18000
#      Wed May 20 11:44:06 2015 -0500
# Node ID 53d1dd999cb991e029c04aa428612c4e52222065
# Parent  44b96431e75236a4124ba310ee45371594eb3511
bundle2: stop capturing output for ssh again

This backout 36111f98f23d since we can have real time output with ssh again. The
tests change is not backed-out because it was a test output fix.

diff --git a/mercurial/exchange.py b/mercurial/exchange.py
--- a/mercurial/exchange.py
+++ b/mercurial/exchange.py
@@ -1303,11 +1303,11 @@ def unbundle(repo, cg, heads, source, ur
     wlock = lock = tr = None
     recordout = None
     # quick fix for output mismatch with bundle2 in 3.4
     captureoutput = repo.ui.configbool('experimental', 'bundle2-output-capture',
                                        False)
-    if url.startswith('remote:'):
+    if url.startswith('remote:http:') or url.startswith('remote:https:'):
         captureoutput = True
     try:
         check_heads(repo, heads, 'uploading changes')
         # push can proceed
         if util.safehasattr(cg, 'params'):
diff --git a/tests/test-bundle2-pushback.t b/tests/test-bundle2-pushback.t
--- a/tests/test-bundle2-pushback.t
+++ b/tests/test-bundle2-pushback.t
@@ -61,15 +61,15 @@ Without config
   $ hg commit -Am 1
   adding f1
   $ hg push
   pushing to ssh://user@dummy/server
   searching for changes
-  remote: pushback not enabled
   remote: adding changesets
   remote: adding manifests
   remote: adding file changes
   remote: added 1 changesets with 1 changes to 1 files
+  remote: pushback not enabled
   $ hg bookmark
   no bookmarks set
 
   $ cd ../server
   $ hg tglog


More information about the Mercurial-devel mailing list