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