diff --git a/tests/test-bundle2.t b/tests/test-bundle2.t --- a/tests/test-bundle2.t +++ b/tests/test-bundle2.t @@ -904,8 +904,12 @@ Setting up > > def _pushbundle2failpart(orig, pushop, bundler): > extradata = orig(pushop, bundler) - > part = bundle2.bundlepart('test:abort') - > bundler.addpart(part) + > reason = pushop.ui.config('failpush', 'reason', None) + > part = None + > if reason == 'abort': + > part = bundle2.bundlepart('test:abort') + > if part is not None: + > bundler.addpart(part) > return extradata > > @bundle2.parthandler("test:abort") @@ -938,6 +942,11 @@ Setting up Doing the actual push: Abort error + $ cat << EOF >> $HGRCPATH + > [failpush] + > reason = abort + > EOF + $ hg -R main push other -r e7ec4e813ba6 pushing to other searching for changes