##// END OF EJS Templates
bundle-tests: operate from outside a repository...
Pierre-Yves David -
r30911:f3c5a8a4 stable
parent child Browse files
Show More
@@ -1024,11 +1024,12 b' bundle1 pull can be disabled for general'
1024
1024
1025 Verify the global server.bundle1 option works
1025 Verify the global server.bundle1 option works
1026
1026
1027 $ cat > .hg/hgrc << EOF
1027 $ cd ..
1028 $ cat > bundle2onlyserver/.hg/hgrc << EOF
1028 > [server]
1029 > [server]
1029 > bundle1 = false
1030 > bundle1 = false
1030 > EOF
1031 > EOF
1031 $ hg serve -p $HGPORT -d --pid-file=hg.pid
1032 $ hg -R bundle2onlyserver serve -p $HGPORT -d --pid-file=hg.pid
1032 $ cat hg.pid >> $DAEMON_PIDS
1033 $ cat hg.pid >> $DAEMON_PIDS
1033 $ hg --config devel.legacy.exchange=bundle1 clone http://localhost:$HGPORT not-bundle2
1034 $ hg --config devel.legacy.exchange=bundle1 clone http://localhost:$HGPORT not-bundle2
1034 requesting all changes
1035 requesting all changes
@@ -1038,11 +1039,11 b' Verify the global server.bundle1 option '
1038 [255]
1039 [255]
1039 $ killdaemons.py
1040 $ killdaemons.py
1040
1041
1041 $ cat > .hg/hgrc << EOF
1042 $ cat > bundle2onlyserver/.hg/hgrc << EOF
1042 > [server]
1043 > [server]
1043 > bundle1gd = false
1044 > bundle1gd = false
1044 > EOF
1045 > EOF
1045 $ hg serve -p $HGPORT -d --pid-file=hg.pid
1046 $ hg -R bundle2onlyserver serve -p $HGPORT -d --pid-file=hg.pid
1046 $ cat hg.pid >> $DAEMON_PIDS
1047 $ cat hg.pid >> $DAEMON_PIDS
1047
1048
1048 $ hg --config devel.legacy.exchange=bundle1 clone http://localhost:$HGPORT/ not-bundle2
1049 $ hg --config devel.legacy.exchange=bundle1 clone http://localhost:$HGPORT/ not-bundle2
@@ -1054,7 +1055,7 b' Verify the global server.bundle1 option '
1054
1055
1055 $ killdaemons.py
1056 $ killdaemons.py
1056
1057
1057 $ cd ../notgdserver
1058 $ cd notgdserver
1058 $ cat > .hg/hgrc << EOF
1059 $ cat > .hg/hgrc << EOF
1059 > [server]
1060 > [server]
1060 > bundle1gd = false
1061 > bundle1gd = false
General Comments 0
You need to be logged in to leave comments. Login now