##// END OF EJS Templates
bundle2: make error testing more modular...
Pierre-Yves David -
r21178:9a813e70 stable
parent child Browse files
Show More
@@ -904,7 +904,11 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 > reason = pushop.ui.config('failpush', 'reason', None)
908 > part = None
909 > if reason == 'abort':
907 > part = bundle2.bundlepart('test:abort')
910 > part = bundle2.bundlepart('test:abort')
911 > if part is not None:
908 > bundler.addpart(part)
912 > bundler.addpart(part)
909 > return extradata
913 > return extradata
910 >
914 >
@@ -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