775 added 0 changesets with 0 changes to 3 files |
775 added 0 changesets with 0 changes to 3 files |
776 \x00\x00\x00\x00\x00\x00\x00\x00 (no-eol) (esc) |
776 \x00\x00\x00\x00\x00\x00\x00\x00 (no-eol) (esc) |
777 |
777 |
778 Check handling of exception during generation. |
778 Check handling of exception during generation. |
779 ---------------------------------------------- |
779 ---------------------------------------------- |
780 (is currently not right) |
|
781 |
780 |
782 $ hg bundle2 --genraise > ../genfailed.hg2 |
781 $ hg bundle2 --genraise > ../genfailed.hg2 |
783 abort: Someone set up us the bomb! |
782 abort: Someone set up us the bomb! |
784 [255] |
783 [255] |
785 |
784 |
786 Should still be a valid bundle |
785 Should still be a valid bundle |
787 (is currently not right) |
|
788 |
786 |
789 $ cat ../genfailed.hg2 |
787 $ cat ../genfailed.hg2 |
790 HG2Y\x00\x00\x00\x00\x00\x00\x00\x11 (esc) |
788 HG2Y\x00\x00\x00\x00\x00\x00\x00\x11 (esc) |
791 b2x:output\x00\x00\x00\x00\x00\x00 (no-eol) (esc) |
789 b2x:output\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\x00\x00\x00L\x0fb2x:error:abort\x00\x00\x00\x00\x01\x00\x07-messageunexpected error: Someone set up us the bomb!\x00\x00\x00\x00\x00\x00\x00\x00 (no-eol) (esc) |
792 |
790 |
793 And its handling on the other size raise a clean exception |
791 And its handling on the other size raise a clean exception |
794 (is currently not right) |
|
795 |
792 |
796 $ cat ../genfailed.hg2 | hg unbundle2 |
793 $ cat ../genfailed.hg2 | hg unbundle2 |
797 0 unread bytes |
794 0 unread bytes |
798 abort: stream ended unexpectedly (got 0 bytes, expected 4) |
795 abort: unexpected error: Someone set up us the bomb! |
799 [255] |
796 [255] |
800 |
797 |
801 |
798 |
802 $ cd .. |
799 $ cd .. |