Show More
@@ -904,8 +904,12 b' Setting up' | |||||
904 | > |
|
904 | > | |
905 | > def _pushbundle2failpart(orig, pushop, bundler): |
|
905 | > def _pushbundle2failpart(orig, pushop, bundler): | |
906 | > extradata = orig(pushop, bundler) |
|
906 | > extradata = orig(pushop, bundler) | |
907 | > part = bundle2.bundlepart('test:abort') |
|
907 | > reason = pushop.ui.config('failpush', 'reason', None) | |
908 | > bundler.addpart(part) |
|
908 | > part = None | |
|
909 | > if reason == 'abort': | |||
|
910 | > part = bundle2.bundlepart('test:abort') | |||
|
911 | > if part is not None: | |||
|
912 | > bundler.addpart(part) | |||
909 | > return extradata |
|
913 | > return extradata | |
910 | > |
|
914 | > | |
911 | > @bundle2.parthandler("test:abort") |
|
915 | > @bundle2.parthandler("test:abort") | |
@@ -938,6 +942,11 b' Setting up' | |||||
938 |
|
942 | |||
939 | Doing the actual push: Abort error |
|
943 | Doing the actual push: Abort error | |
940 |
|
944 | |||
|
945 | $ cat << EOF >> $HGRCPATH | |||
|
946 | > [failpush] | |||
|
947 | > reason = abort | |||
|
948 | > EOF | |||
|
949 | ||||
941 | $ hg -R main push other -r e7ec4e813ba6 |
|
950 | $ hg -R main push other -r e7ec4e813ba6 | |
942 | pushing to other |
|
951 | pushing to other | |
943 | searching for changes |
|
952 | searching for changes |
General Comments 0
You need to be logged in to leave comments.
Login now