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

login
register
mail settings
Submitter Pierre-Yves David
Date June 3, 2015, 8:26 p.m.
Message ID <53d1dd999cb991e029c0.1433363193@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/9464/
State Superseded
Commit 525fbf24b51be9c9aae73842dda383a92cea5757
Headers show

Comments

Pierre-Yves David - June 3, 2015, 8:26 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@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.

Patch

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