737 adding a |
737 adding a |
738 $ echo '[extensions]' >> src/.hg/hgrc |
738 $ echo '[extensions]' >> src/.hg/hgrc |
739 $ echo '# enable extension locally' >> src/.hg/hgrc |
739 $ echo '# enable extension locally' >> src/.hg/hgrc |
740 $ echo "reposetuptest = $TESTTMP/reposetuptest.py" >> src/.hg/hgrc |
740 $ echo "reposetuptest = $TESTTMP/reposetuptest.py" >> src/.hg/hgrc |
741 $ hg -R src status |
741 $ hg -R src status |
742 reposetup() for $TESTTMP/reposetup-test/src |
742 reposetup() for $TESTTMP/reposetup-test/src (glob) |
743 |
743 |
744 $ hg clone -U src clone-dst1 |
744 $ hg clone -U src clone-dst1 |
745 reposetup() for $TESTTMP/reposetup-test/src |
745 reposetup() for $TESTTMP/reposetup-test/src (glob) |
746 $ hg init push-dst1 |
746 $ hg init push-dst1 |
747 $ hg -q -R src push push-dst1 |
747 $ hg -q -R src push push-dst1 |
748 reposetup() for $TESTTMP/reposetup-test/src |
748 reposetup() for $TESTTMP/reposetup-test/src (glob) |
749 $ hg init pull-src1 |
749 $ hg init pull-src1 |
750 $ hg -q -R pull-src1 pull src |
750 $ hg -q -R pull-src1 pull src |
751 reposetup() for $TESTTMP/reposetup-test/src |
751 reposetup() for $TESTTMP/reposetup-test/src (glob) |
752 |
752 |
753 $ echo '[extensions]' >> $HGRCPATH |
753 $ echo '[extensions]' >> $HGRCPATH |
754 $ echo '# disable extension globally and explicitly' >> $HGRCPATH |
754 $ echo '# disable extension globally and explicitly' >> $HGRCPATH |
755 $ echo 'reposetuptest = !' >> $HGRCPATH |
755 $ echo 'reposetuptest = !' >> $HGRCPATH |
756 $ hg clone -U src clone-dst2 |
756 $ hg clone -U src clone-dst2 |
757 reposetup() for $TESTTMP/reposetup-test/src |
757 reposetup() for $TESTTMP/reposetup-test/src (glob) |
758 $ hg init push-dst2 |
758 $ hg init push-dst2 |
759 $ hg -q -R src push push-dst2 |
759 $ hg -q -R src push push-dst2 |
760 reposetup() for $TESTTMP/reposetup-test/src |
760 reposetup() for $TESTTMP/reposetup-test/src (glob) |
761 $ hg init pull-src2 |
761 $ hg init pull-src2 |
762 $ hg -q -R pull-src2 pull src |
762 $ hg -q -R pull-src2 pull src |
763 reposetup() for $TESTTMP/reposetup-test/src |
763 reposetup() for $TESTTMP/reposetup-test/src (glob) |
764 |
764 |
765 $ echo '[extensions]' >> $HGRCPATH |
765 $ echo '[extensions]' >> $HGRCPATH |
766 $ echo '# enable extension globally' >> $HGRCPATH |
766 $ echo '# enable extension globally' >> $HGRCPATH |
767 $ echo "reposetuptest = $TESTTMP/reposetuptest.py" >> $HGRCPATH |
767 $ echo "reposetuptest = $TESTTMP/reposetuptest.py" >> $HGRCPATH |
768 $ hg clone -U src clone-dst3 |
768 $ hg clone -U src clone-dst3 |
769 reposetup() for $TESTTMP/reposetup-test/src |
769 reposetup() for $TESTTMP/reposetup-test/src (glob) |
770 reposetup() for $TESTTMP/reposetup-test/clone-dst3 |
770 reposetup() for $TESTTMP/reposetup-test/clone-dst3 (glob) |
771 $ hg init push-dst3 |
771 $ hg init push-dst3 |
772 reposetup() for $TESTTMP/reposetup-test/push-dst3 |
772 reposetup() for $TESTTMP/reposetup-test/push-dst3 (glob) |
773 $ hg -q -R src push push-dst3 |
773 $ hg -q -R src push push-dst3 |
774 reposetup() for $TESTTMP/reposetup-test/src |
774 reposetup() for $TESTTMP/reposetup-test/src (glob) |
775 reposetup() for $TESTTMP/reposetup-test/push-dst3 |
775 reposetup() for $TESTTMP/reposetup-test/push-dst3 (glob) |
776 $ hg init pull-src3 |
776 $ hg init pull-src3 |
777 reposetup() for $TESTTMP/reposetup-test/pull-src3 |
777 reposetup() for $TESTTMP/reposetup-test/pull-src3 (glob) |
778 $ hg -q -R pull-src3 pull src |
778 $ hg -q -R pull-src3 pull src |
779 reposetup() for $TESTTMP/reposetup-test/pull-src3 |
779 reposetup() for $TESTTMP/reposetup-test/pull-src3 (glob) |
780 reposetup() for $TESTTMP/reposetup-test/src |
780 reposetup() for $TESTTMP/reposetup-test/src (glob) |
781 |
781 |
782 $ echo '[extensions]' >> src/.hg/hgrc |
782 $ echo '[extensions]' >> src/.hg/hgrc |
783 $ echo '# disable extension locally' >> src/.hg/hgrc |
783 $ echo '# disable extension locally' >> src/.hg/hgrc |
784 $ echo 'reposetuptest = !' >> src/.hg/hgrc |
784 $ echo 'reposetuptest = !' >> src/.hg/hgrc |
785 $ hg clone -U src clone-dst4 |
785 $ hg clone -U src clone-dst4 |
786 reposetup() for $TESTTMP/reposetup-test/clone-dst4 |
786 reposetup() for $TESTTMP/reposetup-test/clone-dst4 (glob) |
787 $ hg init push-dst4 |
787 $ hg init push-dst4 |
788 reposetup() for $TESTTMP/reposetup-test/push-dst4 |
788 reposetup() for $TESTTMP/reposetup-test/push-dst4 (glob) |
789 $ hg -q -R src push push-dst4 |
789 $ hg -q -R src push push-dst4 |
790 reposetup() for $TESTTMP/reposetup-test/push-dst4 |
790 reposetup() for $TESTTMP/reposetup-test/push-dst4 (glob) |
791 $ hg init pull-src4 |
791 $ hg init pull-src4 |
792 reposetup() for $TESTTMP/reposetup-test/pull-src4 |
792 reposetup() for $TESTTMP/reposetup-test/pull-src4 (glob) |
793 $ hg -q -R pull-src4 pull src |
793 $ hg -q -R pull-src4 pull src |
794 reposetup() for $TESTTMP/reposetup-test/pull-src4 |
794 reposetup() for $TESTTMP/reposetup-test/pull-src4 (glob) |
795 |
795 |
796 disabling in command line overlays with all configuration |
796 disabling in command line overlays with all configuration |
797 $ hg --config extensions.reposetuptest=! clone -U src clone-dst5 |
797 $ hg --config extensions.reposetuptest=! clone -U src clone-dst5 |
798 $ hg --config extensions.reposetuptest=! init push-dst5 |
798 $ hg --config extensions.reposetuptest=! init push-dst5 |
799 $ hg --config extensions.reposetuptest=! -q -R src push push-dst5 |
799 $ hg --config extensions.reposetuptest=! -q -R src push push-dst5 |