diff tests/test-bundle2-exchange.t @ 23221:cadc9a723d60

changegroup: use the 'postclose' API on transaction The post-transaction hooks run after the lock release (because hooks may want to touch the repository), but they must only run if the transaction is successfully closed. We use the new 'addpostclose' method on transaction to register a callback installing this post-lock-release call.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 28 Oct 2014 15:44:23 +0100
parents f10019d2ee0a
children 6b7e60fb0b38
line wrap: on
line diff
--- a/tests/test-bundle2-exchange.t	Tue Oct 28 14:24:43 2014 +0100
+++ b/tests/test-bundle2-exchange.t	Tue Oct 28 15:44:23 2014 +0100
@@ -462,7 +462,6 @@
   searching for changes
   transaction abort!
   rollback completed
-  changegroup hook: HG_BUNDLE2-EXP=1 HG_NODE=e7ec4e813ba6b07be2a0516ce1a74bb4e503f91a HG_SOURCE=push HG_URL=push
   abort: b2x-pretransactionclose.failpush hook exited with status 1
   [255]
 
@@ -472,7 +471,6 @@
   abort: b2x-pretransactionclose.failpush hook exited with status 1
   remote: transaction abort!
   remote: rollback completed
-  remote: changegroup hook: HG_BUNDLE2-EXP=1 HG_NODE=e7ec4e813ba6b07be2a0516ce1a74bb4e503f91a HG_SOURCE=serve HG_URL=remote:ssh:127.0.0.1
   [255]
 
   $ hg -R main push http://localhost:$HGPORT2/ -r e7ec4e813ba6