tests/test-bundle2-exchange.t
changeset 45839 ebee234d952a
parent 45765 ed84a4d48910
child 46417 768056549737
equal deleted inserted replaced
45838:ae00e170f2d1 45839:ebee234d952a
   985   $ hg --config devel.legacy.exchange=bundle1 clone http://localhost:$HGPORT/ not-bundle2
   985   $ hg --config devel.legacy.exchange=bundle1 clone http://localhost:$HGPORT/ not-bundle2
   986   requesting all changes
   986   requesting all changes
   987   abort: remote error:
   987   abort: remote error:
   988   incompatible Mercurial client; bundle2 required
   988   incompatible Mercurial client; bundle2 required
   989   (see https://www.mercurial-scm.org/wiki/IncompatibleClient)
   989   (see https://www.mercurial-scm.org/wiki/IncompatibleClient)
   990   [255]
   990   [100]
   991   $ killdaemons.py
   991   $ killdaemons.py
   992   $ cd ..
   992   $ cd ..
   993 
   993 
   994 bundle1 can still pull non-generaldelta repos when generaldelta bundle1 disabled
   994 bundle1 can still pull non-generaldelta repos when generaldelta bundle1 disabled
   995 
   995 
  1030   $ hg --config devel.legacy.exchange=bundle1 clone http://localhost:$HGPORT/ not-bundle2
  1030   $ hg --config devel.legacy.exchange=bundle1 clone http://localhost:$HGPORT/ not-bundle2
  1031   requesting all changes
  1031   requesting all changes
  1032   abort: remote error:
  1032   abort: remote error:
  1033   incompatible Mercurial client; bundle2 required
  1033   incompatible Mercurial client; bundle2 required
  1034   (see https://www.mercurial-scm.org/wiki/IncompatibleClient)
  1034   (see https://www.mercurial-scm.org/wiki/IncompatibleClient)
  1035   [255]
  1035   [100]
  1036 
  1036 
  1037   $ killdaemons.py
  1037   $ killdaemons.py
  1038 
  1038 
  1039 Verify the global server.bundle1 option works
  1039 Verify the global server.bundle1 option works
  1040 
  1040 
  1048   $ hg --config devel.legacy.exchange=bundle1 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   [100]
  1054   $ killdaemons.py
  1054   $ killdaemons.py
  1055 
  1055 
  1056   $ hg --config devel.legacy.exchange=bundle1 clone ssh://user@dummy/bundle2onlyserver not-bundle2-ssh
  1056   $ hg --config devel.legacy.exchange=bundle1 clone ssh://user@dummy/bundle2onlyserver not-bundle2-ssh
  1057   requesting all changes
  1057   requesting all changes
  1058   adding changesets
  1058   adding changesets
  1073   $ hg --config devel.legacy.exchange=bundle1 clone http://localhost:$HGPORT/ not-bundle2
  1073   $ hg --config devel.legacy.exchange=bundle1 clone http://localhost:$HGPORT/ not-bundle2
  1074   requesting all changes
  1074   requesting all changes
  1075   abort: remote error:
  1075   abort: remote error:
  1076   incompatible Mercurial client; bundle2 required
  1076   incompatible Mercurial client; bundle2 required
  1077   (see https://www.mercurial-scm.org/wiki/IncompatibleClient)
  1077   (see https://www.mercurial-scm.org/wiki/IncompatibleClient)
  1078   [255]
  1078   [100]
  1079 
  1079 
  1080   $ killdaemons.py
  1080   $ killdaemons.py
  1081 
  1081 
  1082   $ cd notgdserver
  1082   $ cd notgdserver
  1083   $ cat > .hg/hgrc << EOF
  1083   $ cat > .hg/hgrc << EOF
  1130   pushing to http://localhost:$HGPORT/
  1130   pushing to http://localhost:$HGPORT/
  1131   searching for changes
  1131   searching for changes
  1132   abort: remote error:
  1132   abort: remote error:
  1133   incompatible Mercurial client; bundle2 required
  1133   incompatible Mercurial client; bundle2 required
  1134   (see https://www.mercurial-scm.org/wiki/IncompatibleClient)
  1134   (see https://www.mercurial-scm.org/wiki/IncompatibleClient)
  1135   [255]
  1135   [100]
  1136 
  1136 
  1137 (also check with ssh)
  1137 (also check with ssh)
  1138 
  1138 
  1139   $ hg --config devel.legacy.exchange=bundle1 push ssh://user@dummy/bundle2onlyserver
  1139   $ hg --config devel.legacy.exchange=bundle1 push ssh://user@dummy/bundle2onlyserver
  1140   pushing to ssh://user@dummy/bundle2onlyserver
  1140   pushing to ssh://user@dummy/bundle2onlyserver