Mercurial > evolve
changeset 5533:044ce00dfa88 stable
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.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 05 Sep 2020 00:07:01 -0400 |
parents | 3e23bedf8d38 |
children | 1ee535d769db |
files | tests/test-topic.t tests/testlib/topic_setup.sh |
diffstat | 2 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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]
--- 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=