# HG changeset patch # User Matt Harbison # Date 1599278821 14400 # Node ID 044ce00dfa88905d1c455c8cde3e05c16f41ecfb # Parent 3e23bedf8d384eaf5ce65588ff2591f2f6e95d4e tests: use the modern config setting to enable evolution in topic tests When adding `hg pick --config extensions.evolve=` to test-topic-dest.t to investigate issue6406, it failed with `abort: unknown command 'pick'`. This is a manifestation of issue6039. I made several attempts at determining the root cause, and while I'm still worried about *why* a config setting can cause the extension to fail to fully initialize, there are some topic bugs to cleanup and I don't feel like spending more time on this. diff -r 3e23bedf8d38 -r 044ce00dfa88 tests/test-topic.t --- a/tests/test-topic.t Tue Sep 08 11:24:38 2020 +0800 +++ b/tests/test-topic.t Sat Sep 05 00:07:01 2020 -0400 @@ -200,8 +200,13 @@ Test topics interaction with evolution: - $ hg topics --config experimental.evolution= - $ hg topics --config experimental.evolution= --rev . bob + $ hg topics --config experimental.evolution= \ + > --config experimental.evolution.createmarkers=0 \ + > --config experimental.evolution.exchange=0 + $ hg topics --config experimental.evolution= \ + > --config experimental.evolution.createmarkers=0 \ + > --config experimental.evolution.exchange=0 \ + > --rev . bob abort: must have obsolete enabled to change topics [255] diff -r 3e23bedf8d38 -r 044ce00dfa88 tests/testlib/topic_setup.sh --- a/tests/testlib/topic_setup.sh Tue Sep 08 11:24:38 2020 +0800 +++ b/tests/testlib/topic_setup.sh Sat Sep 05 00:07:01 2020 -0400 @@ -8,7 +8,8 @@ # Enable obsolete markers and enable extensions cat >> $HGRCPATH << EOF [experimental] -evolution=createmarkers,exchange +evolution.createmarkers=true +evolution.exchange=true [extensions] rebase=