ssh: capture output with bundle2 again (
issue4642)
I just discovered that we are not displaying ssh server output in real time
anymore. So we can just fall back to the bundle2 output capture for now. This
fix the race condition issue we where seeing in tests. Re-instating real time
output for ssh would fix the issue too but lets get the test to pass first.
--- a/mercurial/exchange.py Thu May 14 21:35:06 2015 -0700
+++ b/mercurial/exchange.py Mon May 18 22:35:27 2015 -0500
@@ -1288,7 +1288,7 @@
# quick fix for output mismatch with bundle2 in 3.4
captureoutput = repo.ui.configbool('experimental', 'bundle2-output-capture',
False)
- if url.startswith('remote:http:') or url.startswith('remote:https:'):
+ if url.startswith('remote:'):
captureoutput = True
try:
check_heads(repo, heads, 'uploading changes')
--- a/tests/test-bundle2-exchange.t Thu May 14 21:35:06 2015 -0700
+++ b/tests/test-bundle2-exchange.t Mon May 18 22:35:27 2015 -0500
@@ -694,7 +694,6 @@
$ hg -R main push ssh://user@dummy/other -r e7ec4e813ba6
pushing to ssh://user@dummy/other
searching for changes
- abort: pretxnchangegroup hook exited with status 1
remote: adding changesets
remote: adding manifests
remote: adding file changes
@@ -703,6 +702,7 @@
remote: transaction abort!
remote: Cleaning up the mess...
remote: rollback completed
+ abort: pretxnchangegroup hook exited with status 1
[255]
$ hg -R main push http://localhost:$HGPORT2/ -r e7ec4e813ba6
pushing to http://localhost:$HGPORT2/