Mercurial > public > mercurial-scm > hg-stable
diff tests/test-bundle2-exchange.t @ 24878:e530cde6d115 stable
bundle2: disable ouput capture unless we use http (issue4613 issue4615)
The current bundle2 processing was capturing all output. This is nice as it
provide better meta data about what output what, but this was changing two
things:
1) adding a prefix "remote: " to "other" output during local push (issue4613)
2) local and ssh push does not provide real time output anymore (issue4615)
As we are unsure about what form should be used in (1) and how to solve (2) we
disable output capture in this two cases. Output capture can be forced using an
experimental option.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 28 Apr 2015 17:38:02 -0700 |
parents | 263ec70769cb |
children | 36111f98f23d |
line wrap: on
line diff
--- a/tests/test-bundle2-exchange.t Tue Feb 03 15:01:43 2015 -0500 +++ b/tests/test-bundle2-exchange.t Tue Apr 28 17:38:02 2015 -0700 @@ -16,6 +16,7 @@ > [experimental] > evolution=createmarkers,exchange > bundle2-exp=True + > bundle2-output-capture=True > [ui] > ssh=python "$TESTDIR/dummyssh" > logtemplate={rev}:{node|short} {phase} {author} {bookmarks} {desc|firstline} @@ -667,3 +668,52 @@ remote: rollback completed abort: pretxnchangegroup hook exited with status 1 [255] + +Check output capture control. + +(should be still forced for http, disabled for local and ssh) + + $ cat >> $HGRCPATH << EOF + > [experimental] + > bundle2-output-capture=False + > EOF + + $ hg -R main push other -r e7ec4e813ba6 + pushing to other + searching for changes + adding changesets + adding manifests + adding file changes + added 1 changesets with 1 changes to 1 files + Fail early! + transaction abort! + Cleaning up the mess... + rollback completed + abort: pretxnchangegroup hook exited with status 1 + [255] + $ 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 + remote: added 1 changesets with 1 changes to 1 files + remote: Fail early! + remote: transaction abort! + remote: Cleaning up the mess... + remote: rollback completed + [255] + $ hg -R main push http://localhost:$HGPORT2/ -r e7ec4e813ba6 + pushing to http://localhost:$HGPORT2/ + searching for changes + remote: adding changesets + remote: adding manifests + remote: adding file changes + remote: added 1 changesets with 1 changes to 1 files + remote: Fail early! + remote: transaction abort! + remote: Cleaning up the mess... + remote: rollback completed + abort: pretxnchangegroup hook exited with status 1 + [255]