tests/testlib/topic_setup.sh
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 10 Oct 2017 15:47:11 +0200
branchstable
changeset 3044 b185beb94df5
parent 2828 fa2deeb5dd03
permissions -rw-r--r--
topic: reorder revset for faster evaluation When running the revset on unfiltered repository, the mutable set can get huge. So removing the obsolete changeset first provide a large speedup. This resolve the performance regression we were seeing since the 6.7.0 release.

#!/bin/sh
. $TESTDIR/testlib/pythonpath.sh

# This file holds logic that is used in many tests.
# It can be called in a test like this:
#  $ . "$TESTDIR/testlib/topic_setup.sh"

# Enable obsolete markers and enable extensions
cat >> $HGRCPATH << EOF
[experimental]
evolution=createmarkers,exchange

[extensions]
rebase=
topic=
EOF