comparison tests/test-discovery-obshashrange.t @ 4511:e4fc3af2d0a9 mercurial-4.8

test-compat: merge stable into mercurial-4.8
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 11 Apr 2019 22:41:25 +0200
parents 42dbe3a38ac2 2db0aca03a88
children 7a779a288793 63a816beee7e
comparison
equal deleted inserted replaced
4358:72f4e924f25a 4511:e4fc3af2d0a9
1156 [1] 1156 [1]
1157 $ hg strip -r 5 --config extensions.strip= 1157 $ hg strip -r 5 --config extensions.strip=
1158 saved backup bundle to $TESTTMP/client/.hg/strip-backup/c8d03c1b5e94-b257442b-backup.hg 1158 saved backup bundle to $TESTTMP/client/.hg/strip-backup/c8d03c1b5e94-b257442b-backup.hg
1159 $ f -s .hg/cache/evoext* 1159 $ f -s .hg/cache/evoext*
1160 .hg/cache/evoext-obscache-00: size=70 1160 .hg/cache/evoext-obscache-00: size=70
1161 $ cd ..
1162
1163 Check capabilities advertisement
1164 ================================
1165
1166 $ hg init with-evolve
1167 $ cat << EOF >> with-evolve/.hg/hgrc
1168 > [experimental]
1169 > evolution.exchange=yes
1170 > EOF
1171 $ hg init without-evolve
1172 $ cat << EOF >> without-evolve/.hg/hgrc
1173 > [experimental]
1174 > evolution.exchange=no
1175 > EOF
1176
1177 $ hg debugcapabilities ssh://user@dummy/with-evolve | grep _evoext
1178 _evoext_getbundle_obscommon
1179 _evoext_obshash_0
1180 _evoext_obshash_1
1181 _evoext_obshashrange_v1
1182 $ hg debugcapabilities ssh://user@dummy/without-evolve | grep _evoext
1183 [1]
1184
1185 Using http:
1186
1187 $ cat > web.conf << EOF
1188 > [paths]
1189 > / = *
1190 > EOF
1191
1192 (evolve version first)
1193
1194 $ hg serve --web-conf web.conf -p $HGPORT -d --pid-file hg.pid
1195 $ cat hg.pid >> $DAEMON_PIDS
1196
1197 $ hg debugcapabilities http://localhost:$HGPORT/with-evolve| grep _evoext
1198 _evoext_getbundle_obscommon
1199 _evoext_obshash_0
1200 _evoext_obshash_1
1201 _evoext_obshashrange_v1
1202 $ hg debugcapabilities http://localhost:$HGPORT/without-evolve| grep _evoext
1203 [1]
1204
1205 $ killdaemons.py
1206
1207
1208 (evolve version second)
1209
1210 $ hg serve --web-conf web.conf -p $HGPORT -d --pid-file hg.pid
1211 $ cat hg.pid >> $DAEMON_PIDS
1212
1213 $ hg debugcapabilities http://localhost:$HGPORT/without-evolve| grep _evoext
1214 [1]
1215 $ hg debugcapabilities http://localhost:$HGPORT/with-evolve| grep _evoext
1216 _evoext_getbundle_obscommon
1217 _evoext_obshash_0
1218 _evoext_obshash_1
1219 _evoext_obshashrange_v1
1220
1221 $ killdaemons.py