comparison tests/test-bundle2-exchange.t @ 29685:06e642d7f76c

tests: use 'legacy.exchange' option in 'test-bundle2-exchange.t' The new option will stay around. The experimental option was only meant to be temporary.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Tue, 02 Aug 2016 15:23:03 +0200
parents 622782ea9cf3
children 531e85eec23c
comparison
equal deleted inserted replaced
29684:ff5d5751fc1b 29685:06e642d7f76c
967 $ hg -q commit -A -m initial 967 $ hg -q commit -A -m initial
968 968
969 $ hg serve -p $HGPORT -d --pid-file=hg.pid 969 $ hg serve -p $HGPORT -d --pid-file=hg.pid
970 $ cat hg.pid >> $DAEMON_PIDS 970 $ cat hg.pid >> $DAEMON_PIDS
971 971
972 $ hg --config experimental.bundle2-exp=false clone http://localhost:$HGPORT/ not-bundle2 972 $ hg --config devel.legacy.exchange=bundle1 clone http://localhost:$HGPORT/ not-bundle2
973 requesting all changes 973 requesting all changes
974 abort: remote error: 974 abort: remote error:
975 incompatible Mercurial client; bundle2 required 975 incompatible Mercurial client; bundle2 required
976 (see https://www.mercurial-scm.org/wiki/IncompatibleClient) 976 (see https://www.mercurial-scm.org/wiki/IncompatibleClient)
977 [255] 977 [255]
990 $ touch foo 990 $ touch foo
991 $ hg -q commit -A -m initial 991 $ hg -q commit -A -m initial
992 $ hg serve -p $HGPORT -d --pid-file=hg.pid 992 $ hg serve -p $HGPORT -d --pid-file=hg.pid
993 $ cat hg.pid >> $DAEMON_PIDS 993 $ cat hg.pid >> $DAEMON_PIDS
994 994
995 $ hg --config experimental.bundle2-exp=false clone http://localhost:$HGPORT/ not-bundle2-1 995 $ hg --config devel.legacy.exchange=bundle1 clone http://localhost:$HGPORT/ not-bundle2-1
996 requesting all changes 996 requesting all changes
997 adding changesets 997 adding changesets
998 adding manifests 998 adding manifests
999 adding file changes 999 adding file changes
1000 added 1 changesets with 1 changes to 1 files 1000 added 1 changesets with 1 changes to 1 files
1011 > bundle1gd.pull = false 1011 > bundle1gd.pull = false
1012 > EOF 1012 > EOF
1013 1013
1014 $ hg serve -p $HGPORT -d --pid-file=hg.pid 1014 $ hg serve -p $HGPORT -d --pid-file=hg.pid
1015 $ cat hg.pid >> $DAEMON_PIDS 1015 $ cat hg.pid >> $DAEMON_PIDS
1016 $ hg --config experimental.bundle2-exp=false clone http://localhost:$HGPORT/ not-bundle2 1016 $ hg --config devel.legacy.exchange=bundle1 clone http://localhost:$HGPORT/ not-bundle2
1017 requesting all changes 1017 requesting all changes
1018 abort: remote error: 1018 abort: remote error:
1019 incompatible Mercurial client; bundle2 required 1019 incompatible Mercurial client; bundle2 required
1020 (see https://www.mercurial-scm.org/wiki/IncompatibleClient) 1020 (see https://www.mercurial-scm.org/wiki/IncompatibleClient)
1021 [255] 1021 [255]
1028 > [server] 1028 > [server]
1029 > bundle1 = false 1029 > bundle1 = false
1030 > EOF 1030 > EOF
1031 $ hg serve -p $HGPORT -d --pid-file=hg.pid 1031 $ hg serve -p $HGPORT -d --pid-file=hg.pid
1032 $ cat hg.pid >> $DAEMON_PIDS 1032 $ cat hg.pid >> $DAEMON_PIDS
1033 $ hg --config experimental.bundle2-exp=false clone http://localhost:$HGPORT not-bundle2 1033 $ hg --config devel.legacy.exchange=bundle1 clone http://localhost:$HGPORT not-bundle2
1034 requesting all changes 1034 requesting all changes
1035 abort: remote error: 1035 abort: remote error:
1036 incompatible Mercurial client; bundle2 required 1036 incompatible Mercurial client; bundle2 required
1037 (see https://www.mercurial-scm.org/wiki/IncompatibleClient) 1037 (see https://www.mercurial-scm.org/wiki/IncompatibleClient)
1038 [255] 1038 [255]
1043 > bundle1gd = false 1043 > bundle1gd = false
1044 > EOF 1044 > EOF
1045 $ hg serve -p $HGPORT -d --pid-file=hg.pid 1045 $ hg serve -p $HGPORT -d --pid-file=hg.pid
1046 $ cat hg.pid >> $DAEMON_PIDS 1046 $ cat hg.pid >> $DAEMON_PIDS
1047 1047
1048 $ hg --config experimental.bundle2-exp=false clone http://localhost:$HGPORT/ not-bundle2 1048 $ hg --config devel.legacy.exchange=bundle1 clone http://localhost:$HGPORT/ not-bundle2
1049 requesting all changes 1049 requesting all changes
1050 abort: remote error: 1050 abort: remote error:
1051 incompatible Mercurial client; bundle2 required 1051 incompatible Mercurial client; bundle2 required
1052 (see https://www.mercurial-scm.org/wiki/IncompatibleClient) 1052 (see https://www.mercurial-scm.org/wiki/IncompatibleClient)
1053 [255] 1053 [255]
1060 > bundle1gd = false 1060 > bundle1gd = false
1061 > EOF 1061 > EOF
1062 $ hg serve -p $HGPORT -d --pid-file=hg.pid 1062 $ hg serve -p $HGPORT -d --pid-file=hg.pid
1063 $ cat hg.pid >> $DAEMON_PIDS 1063 $ cat hg.pid >> $DAEMON_PIDS
1064 1064
1065 $ hg --config experimental.bundle2-exp=false clone http://localhost:$HGPORT/ not-bundle2-2 1065 $ hg --config devel.legacy.exchange=bundle1 clone http://localhost:$HGPORT/ not-bundle2-2
1066 requesting all changes 1066 requesting all changes
1067 adding changesets 1067 adding changesets
1068 adding manifests 1068 adding manifests
1069 adding file changes 1069 adding file changes
1070 added 1 changesets with 1 changes to 1 files 1070 added 1 changesets with 1 changes to 1 files
1097 updating to branch default 1097 updating to branch default
1098 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 1098 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
1099 $ cd bundle2-only 1099 $ cd bundle2-only
1100 $ echo commit > foo 1100 $ echo commit > foo
1101 $ hg commit -m commit 1101 $ hg commit -m commit
1102 $ hg --config experimental.bundle2-exp=false push 1102 $ hg --config devel.legacy.exchange=bundle1 push
1103 pushing to http://localhost:$HGPORT/ 1103 pushing to http://localhost:$HGPORT/
1104 searching for changes 1104 searching for changes
1105 abort: remote error: 1105 abort: remote error:
1106 incompatible Mercurial client; bundle2 required 1106 incompatible Mercurial client; bundle2 required
1107 (see https://www.mercurial-scm.org/wiki/IncompatibleClient) 1107 (see https://www.mercurial-scm.org/wiki/IncompatibleClient)