comparison tests/test-bundle2-exchange.t @ 46977:3f87d2af0bd6

errors: raise RemoteError in some places in exchange.py This is part of https://www.mercurial-scm.org/wiki/ErrorCategoriesPlan Differential Revision: https://phab.mercurial-scm.org/D10467
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 19 Apr 2021 12:52:23 -0700
parents 768056549737
children eb611ecb435c
comparison
equal deleted inserted replaced
46976:f9482db16cef 46977:3f87d2af0bd6
546 pushing to ssh://user@dummy/other 546 pushing to ssh://user@dummy/other
547 searching for changes 547 searching for changes
548 remote: Abandon ship! 548 remote: Abandon ship!
549 remote: (don't panic) 549 remote: (don't panic)
550 abort: push failed on remote 550 abort: push failed on remote
551 [255] 551 [100]
552 552
553 $ hg -R main push http://localhost:$HGPORT2/ -r e7ec4e813ba6 553 $ hg -R main push http://localhost:$HGPORT2/ -r e7ec4e813ba6
554 pushing to http://localhost:$HGPORT2/ 554 pushing to http://localhost:$HGPORT2/
555 searching for changes 555 searching for changes
556 remote: Abandon ship! 556 remote: Abandon ship!
557 remote: (don't panic) 557 remote: (don't panic)
558 abort: push failed on remote 558 abort: push failed on remote
559 [255] 559 [100]
560 560
561 561
562 Doing the actual push: unknown mandatory parts 562 Doing the actual push: unknown mandatory parts
563 563
564 $ cat << EOF >> $HGRCPATH 564 $ cat << EOF >> $HGRCPATH
568 568
569 $ hg -R main push other -r e7ec4e813ba6 569 $ hg -R main push other -r e7ec4e813ba6
570 pushing to other 570 pushing to other
571 searching for changes 571 searching for changes
572 abort: missing support for test:unknown 572 abort: missing support for test:unknown
573 [255] 573 [100]
574 574
575 $ hg -R main push ssh://user@dummy/other -r e7ec4e813ba6 575 $ hg -R main push ssh://user@dummy/other -r e7ec4e813ba6
576 pushing to ssh://user@dummy/other 576 pushing to ssh://user@dummy/other
577 searching for changes 577 searching for changes
578 abort: missing support for test:unknown 578 abort: missing support for test:unknown
579 [255] 579 [100]
580 580
581 $ hg -R main push http://localhost:$HGPORT2/ -r e7ec4e813ba6 581 $ hg -R main push http://localhost:$HGPORT2/ -r e7ec4e813ba6
582 pushing to http://localhost:$HGPORT2/ 582 pushing to http://localhost:$HGPORT2/
583 searching for changes 583 searching for changes
584 abort: missing support for test:unknown 584 abort: missing support for test:unknown
585 [255] 585 [100]
586 586
587 Doing the actual push: race 587 Doing the actual push: race
588 588
589 $ cat << EOF >> $HGRCPATH 589 $ cat << EOF >> $HGRCPATH
590 > [failpush] 590 > [failpush]
651 remote: transaction abort! 651 remote: transaction abort!
652 remote: Cleaning up the mess... 652 remote: Cleaning up the mess...
653 remote: rollback completed 653 remote: rollback completed
654 remote: pretxnclose.failpush hook exited with status 1 654 remote: pretxnclose.failpush hook exited with status 1
655 abort: push failed on remote 655 abort: push failed on remote
656 [255] 656 [100]
657 657
658 $ hg -R main push http://localhost:$HGPORT2/ -r e7ec4e813ba6 658 $ hg -R main push http://localhost:$HGPORT2/ -r e7ec4e813ba6
659 pushing to http://localhost:$HGPORT2/ 659 pushing to http://localhost:$HGPORT2/
660 searching for changes 660 searching for changes
661 remote: adding changesets 661 remote: adding changesets
666 remote: transaction abort! 666 remote: transaction abort!
667 remote: Cleaning up the mess... 667 remote: Cleaning up the mess...
668 remote: rollback completed 668 remote: rollback completed
669 remote: pretxnclose.failpush hook exited with status 1 669 remote: pretxnclose.failpush hook exited with status 1
670 abort: push failed on remote 670 abort: push failed on remote
671 [255] 671 [100]
672 672
673 (check that no 'pending' files remain) 673 (check that no 'pending' files remain)
674 674
675 $ ls -1 other/.hg/bookmarks* 675 $ ls -1 other/.hg/bookmarks*
676 other/.hg/bookmarks 676 other/.hg/bookmarks
710 remote: transaction abort! 710 remote: transaction abort!
711 remote: Cleaning up the mess... 711 remote: Cleaning up the mess...
712 remote: rollback completed 712 remote: rollback completed
713 remote: pretxnchangegroup hook exited with status 1 713 remote: pretxnchangegroup hook exited with status 1
714 abort: push failed on remote 714 abort: push failed on remote
715 [255] 715 [100]
716 $ hg -R main push http://localhost:$HGPORT2/ -r e7ec4e813ba6 716 $ hg -R main push http://localhost:$HGPORT2/ -r e7ec4e813ba6
717 pushing to http://localhost:$HGPORT2/ 717 pushing to http://localhost:$HGPORT2/
718 searching for changes 718 searching for changes
719 remote: adding changesets 719 remote: adding changesets
720 remote: adding manifests 720 remote: adding manifests
723 remote: transaction abort! 723 remote: transaction abort!
724 remote: Cleaning up the mess... 724 remote: Cleaning up the mess...
725 remote: rollback completed 725 remote: rollback completed
726 remote: pretxnchangegroup hook exited with status 1 726 remote: pretxnchangegroup hook exited with status 1
727 abort: push failed on remote 727 abort: push failed on remote
728 [255] 728 [100]
729 729
730 Check output capture control. 730 Check output capture control.
731 731
732 (should be still forced for http, disabled for local and ssh) 732 (should be still forced for http, disabled for local and ssh)
733 733
758 remote: transaction abort! 758 remote: transaction abort!
759 remote: Cleaning up the mess... 759 remote: Cleaning up the mess...
760 remote: rollback completed 760 remote: rollback completed
761 remote: pretxnchangegroup hook exited with status 1 761 remote: pretxnchangegroup hook exited with status 1
762 abort: push failed on remote 762 abort: push failed on remote
763 [255] 763 [100]
764 $ hg -R main push http://localhost:$HGPORT2/ -r e7ec4e813ba6 764 $ hg -R main push http://localhost:$HGPORT2/ -r e7ec4e813ba6
765 pushing to http://localhost:$HGPORT2/ 765 pushing to http://localhost:$HGPORT2/
766 searching for changes 766 searching for changes
767 remote: adding changesets 767 remote: adding changesets
768 remote: adding manifests 768 remote: adding manifests
771 remote: transaction abort! 771 remote: transaction abort!
772 remote: Cleaning up the mess... 772 remote: Cleaning up the mess...
773 remote: rollback completed 773 remote: rollback completed
774 remote: pretxnchangegroup hook exited with status 1 774 remote: pretxnchangegroup hook exited with status 1
775 abort: push failed on remote 775 abort: push failed on remote
776 [255] 776 [100]
777 777
778 Check abort from mandatory pushkey 778 Check abort from mandatory pushkey
779 779
780 $ cat > mandatorypart.py << EOF 780 $ cat > mandatorypart.py << EOF
781 > from mercurial import exchange 781 > from mercurial import exchange
948 $ hg push 948 $ hg push
949 pushing to ssh://user@dummy/lazylock 949 pushing to ssh://user@dummy/lazylock
950 searching for changes 950 searching for changes
951 remote: Lock should not be taken 951 remote: Lock should not be taken
952 abort: push failed on remote 952 abort: push failed on remote
953 [255] 953 [100]
954 954
955 $ cat >> ../lazylock/.hg/hgrc <<EOF 955 $ cat >> ../lazylock/.hg/hgrc <<EOF
956 > [experimental] 956 > [experimental]
957 > bundle2lazylocking=True 957 > bundle2lazylocking=True
958 > EOF 958 > EOF