tests/test-discovery-obshashrange.t
branchmercurial-4.4
changeset 4553 aafd51f145ea
parent 4516 f54bb6eaf5e6
child 4675 79bc0f1a832e
equal deleted inserted replaced
4552:0eb80259f9cb 4553:aafd51f145ea
  1115   saved backup bundle to $TESTTMP/client/.hg/strip-backup/c8d03c1b5e94-b257442b-backup.hg (glob)
  1115   saved backup bundle to $TESTTMP/client/.hg/strip-backup/c8d03c1b5e94-b257442b-backup.hg (glob)
  1116   $ f -s .hg/cache/evoext*
  1116   $ f -s .hg/cache/evoext*
  1117   .hg/cache/evoext-obscache-00: size=70
  1117   .hg/cache/evoext-obscache-00: size=70
  1118   $ cd ..
  1118   $ cd ..
  1119 
  1119 
  1120 Check capabilities advertisement
       
  1121 ================================
       
  1122 
       
  1123   $ hg init with-evolve
       
  1124   $ cat << EOF >> with-evolve/.hg/hgrc
       
  1125   > [experimental]
       
  1126   > evolution.exchange=yes
       
  1127   > EOF
       
  1128   $ hg init without-evolve
       
  1129   $ cat << EOF >> without-evolve/.hg/hgrc
       
  1130   > [experimental]
       
  1131   > evolution.exchange=no
       
  1132   > EOF
       
  1133 
       
  1134   $ hg debugcapabilities ssh://user@dummy/with-evolve | grep _evoext
       
  1135     _evoext_getbundle_obscommon
       
  1136     _evoext_obshash_0
       
  1137     _evoext_obshash_1
       
  1138     _evoext_obshashrange_v1
       
  1139   $ hg debugcapabilities ssh://user@dummy/without-evolve | grep _evoext
       
  1140   [1]
       
  1141 
       
  1142 Using http:
       
  1143 
       
  1144   $ cat > web.conf << EOF
       
  1145   > [paths]
       
  1146   > / = *
       
  1147   > EOF
       
  1148 
       
  1149 (evolve version first)
       
  1150 
       
  1151   $ hg serve --web-conf web.conf -p $HGPORT -d --pid-file hg.pid
       
  1152   $ cat hg.pid >> $DAEMON_PIDS
       
  1153 
       
  1154   $ hg debugcapabilities http://localhost:$HGPORT/with-evolve| grep _evoext
       
  1155     _evoext_getbundle_obscommon
       
  1156     _evoext_obshash_0
       
  1157     _evoext_obshash_1
       
  1158     _evoext_obshashrange_v1
       
  1159   $ hg debugcapabilities http://localhost:$HGPORT/without-evolve| grep _evoext
       
  1160   [1]
       
  1161 
       
  1162   $ killdaemons.py
  1120   $ killdaemons.py
  1163 
       
  1164 
       
  1165 (evolve version second)
       
  1166 
       
  1167   $ hg serve --web-conf web.conf -p $HGPORT -d --pid-file hg.pid
       
  1168   $ cat hg.pid >> $DAEMON_PIDS
       
  1169 
       
  1170   $ hg debugcapabilities http://localhost:$HGPORT/without-evolve| grep _evoext
       
  1171   [1]
       
  1172   $ hg debugcapabilities http://localhost:$HGPORT/with-evolve| grep _evoext
       
  1173     _evoext_getbundle_obscommon
       
  1174     _evoext_obshash_0
       
  1175     _evoext_obshash_1
       
  1176     _evoext_obshashrange_v1
       
  1177 
       
  1178   $ killdaemons.py