Mercurial > evolve
comparison tests/test-discovery-obshashrange.t @ 4479:2db0aca03a88 stable
extensions: avoid enabling evolve for unrelated repositories (issue6057)
The support for the `experimental.evolve` config have been there forever. So we
can stop using the global variable. This help avoiding evolve to enable itself
of repository that did not explicitly activated it. For example, this is useful
for hgwebdir.
Before this change, evolution feature had to be explicitly disabled or enabled
in every single repository.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 09 Apr 2019 20:45:36 +0200 |
parents | b2e2f9fe7a45 |
children | e4fc3af2d0a9 77f3699e711e |
comparison
equal
deleted
inserted
replaced
4463:7d54a538dd1e | 4479:2db0aca03a88 |
---|---|
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 |